diff --git a/.github/workflows/macos_x86_64.yml b/.github/workflows/macos_x86_64.yml new file mode 100644 index 0000000..e07dde7 --- /dev/null +++ b/.github/workflows/macos_x86_64.yml @@ -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 + diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3d7f876..e707fcf 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -15,6 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] + kind: [static, shared] steps: - uses: actions/checkout@v4 @@ -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: |