Update build.yml

This commit is contained in:
klzgrad 2021-02-28 23:16:57 +08:00 committed by GitHub
parent 01fbb4a23b
commit 444cc9b7f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,10 @@ jobs:
- run: sudo apt remove libc6-i386
- run: ./get-clang.sh
working-directory: src
- run: ccache -s
- run: ./build.sh
working-directory: src
- run: ccache -s
- run: ./tests/basic.sh src/out/Release/naive
- run: mkdir ${{ env.BUNDLE }} && cp src/out/Release/naive src/config.json LICENSE USAGE.txt ${{ env.BUNDLE }}
- run: tar cJf ${{ env.BUNDLE }}.tar.xz ${{ env.BUNDLE }}
@ -66,8 +68,10 @@ jobs:
- run: cinst ninja
- run: ./get-clang.sh
working-directory: src
- run: ~/.cargo/bin/sccache -s
- run: ./build.sh
working-directory: src
- run: ~/.cargo/bin/sccache -s
- run: ./tests/basic.sh src/out/Release/naive
if: ${{ matrix.arch != 'arm64' }}
- run: mkdir ${{ env.BUNDLE }} && cp src/out/Release/naive.exe src/config.json LICENSE USAGE.txt ${{ env.BUNDLE }}
@ -97,8 +101,10 @@ jobs:
- run: brew install ninja ccache
- run: ./get-clang.sh
working-directory: src
- run: ccache -s
- run: ./build.sh
working-directory: src
- run: ccache -s
- run: ./tests/basic.sh src/out/Release/naive
if: ${{ matrix.arch != 'arm64' }}
- run: mkdir ${{ env.BUNDLE }} && cp src/out/Release/naive src/config.json LICENSE USAGE.txt ${{ env.BUNDLE }}
@ -161,8 +167,10 @@ jobs:
- run: sudo apt remove libc6-i386
- run: ./get-clang.sh
working-directory: src
- run: ccache -s
- run: ./build.sh
working-directory: src
- run: ccache -s
- run: ./tests/basic.sh src/out/Release/naive
- run: mkdir ${{ env.BUNDLE }} && cp src/out/Release/naive src/config.json LICENSE USAGE.txt ${{ env.BUNDLE }}
- run: tar cJf ${{ env.BUNDLE }}.tar.xz ${{ env.BUNDLE }}