2021-02-28 06:44:08 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-02-28 10:04:36 +03:00
|
|
|
target_cpu: [x64, x86, arm64, arm]
|
2021-02-28 06:44:08 +03:00
|
|
|
env:
|
|
|
|
EXTRA_FLAGS: 'target_cpu="${{ matrix.target_cpu }}"'
|
|
|
|
steps:
|
2021-02-28 10:04:36 +03:00
|
|
|
- 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
|
2021-02-28 10:02:23 +03:00
|
|
|
- run: sudo apt remove libc6-i386
|
2021-02-28 10:04:36 +03:00
|
|
|
- run: ./get-clang.sh
|
|
|
|
working-directory: src
|
|
|
|
- run: ./build.sh
|
|
|
|
working-directory: src
|
|
|
|
- run: ./tests/basic.sh src/out/Release/naive
|