Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 12, 2024
1 parent 1a043d0 commit a584493
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/macos_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: macOS (x86_64)

on:
pull_request:
branches:
- dev

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-12]
arch: [x86_64]
kind: [static, shared]

runs-on: ${{ matrix.os }}

concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.arch }}-${{ matrix.kind }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.9.4
actions-cache-folder: '.xmake-cache'

- name: config
run: |
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
- name: build
run: |
xmake -b unit-test
- name: test
run: |
xmake r unit-test
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
kind: [static, shared]

steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +41,7 @@ jobs:

- name: config
run: |
xmake f -c -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
- name: build
run: |
Expand Down

0 comments on commit a584493

Please sign in to comment.