From 4e350d288e8d12e90cb75b156e60d86be9ddc00e Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 28 Feb 2021 11:44:08 +0800 Subject: [PATCH] Add workflows --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..a707c7c94d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - master + release: + types: + - created +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + target_cpu: [x64, x86, arm64, arm] + env: + EXTRA_FLAGS: 'target_cpu="${{ matrix.target_cpu }}"' + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: apt install ninja-build pkg-config libnss3-dev qemu-user ccache + - name: Configure + working-directory: src + run: ./get-clang.sh + - name: Show ccache stats + run: ccache -s + - name: Build + working-directory: src + run: ./build.sh + - name: Basic tests + run: ./tests/basic.sh src/out/Release/naive \ No newline at end of file