Update build.yml

This commit is contained in:
klzgrad 2021-02-28 17:42:42 +08:00 committed by GitHub
parent d0610aa14a
commit f2c4131c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,9 @@ on:
jobs: jobs:
macos: macos:
runs-on: macos-latest runs-on: macos-latest
strategy:
matrix:
arch: [arm64, arm]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: brew install ninja - run: brew install ninja
@ -23,7 +26,7 @@ jobs:
shell: bash shell: bash
strategy: strategy:
matrix: matrix:
arch: [x64, x86, arm64] arch: [arm]
env: env:
EXTRA_FLAGS: 'target_cpu="${{ matrix.arch }}"' EXTRA_FLAGS: 'target_cpu="${{ matrix.arch }}"'
steps: steps:
@ -34,3 +37,4 @@ jobs:
- run: ./build.sh - run: ./build.sh
working-directory: src working-directory: src
- run: ./tests/basic.sh src/out/Release/naive - run: ./tests/basic.sh src/out/Release/naive
if: ${{ matrix.arch != 'arm' }}