Update build.yml

This commit is contained in:
klzgrad 2021-02-28 15:04:36 +08:00 committed by GitHub
parent 422f45ad4b
commit 90c3cd7c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
target_cpu: [x86] target_cpu: [x64, x86, arm64, arm]
env: env:
EXTRA_FLAGS: 'target_cpu="${{ matrix.target_cpu }}"' EXTRA_FLAGS: 'target_cpu="${{ matrix.target_cpu }}"'
steps: steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user strace
# libc6-i386 interferes with linux-x86 build
- run: sudo apt remove libc6-i386 - run: sudo apt remove libc6-i386
- run: ./get-clang.sh
working-directory: src
- run: ./build.sh
working-directory: src
- run: ./tests/basic.sh src/out/Release/naive