From 444cc9b7f7864fd81f028eb5fbe2644012c1d4e5 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 28 Feb 2021 23:16:57 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb0a907d9c..e95cd44119 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}