From 67bd46ab0f661c9c58cf02756fe064e6d0a16abf Mon Sep 17 00:00:00 2001 From: Supakorn 'Jamie' Rassameemasmuang Date: Thu, 22 Aug 2024 01:30:21 -0600 Subject: [PATCH] CI: Use ccache for building asy on linux. --- .github/workflows/build-asy-main.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-asy-main.yml b/.github/workflows/build-asy-main.yml index 52a203135..f2aeb31e2 100644 --- a/.github/workflows/build-asy-main.yml +++ b/.github/workflows/build-asy-main.yml @@ -16,9 +16,7 @@ jobs: with: fetch-depth: 1 - uses: ./.github/actions/initialize-linux-env - - run: | - VCPKG_ROOT="$VCPKG_INSTALLATION_ROOT" \ - cmake --preset linux/release + - run: cmake --preset linux/release-ccache - name: tar+gz cmake configuration run: tar -czf cmake-linux-cfg-artifact.tar.gz --exclude='vcpkg_installed' cmake-build-linux/release - name: Upload configuration artifacts @@ -127,11 +125,11 @@ jobs: - name: delete cache file run: rm -f cmake-build-linux/release/CMakeCache.txt - name: reconfigure with documentation - run: VCPKG_ROOT="$VCPKG_INSTALLATION_ROOT" cmake --preset linux/release + run: cmake --preset linux/release-ccache - name: touch asymptote binary (to avoid need for rebuilding) run: touch cmake-build-linux/release/asy - name: build documentation - run: cmake --build --preset linux/release --target docgen -j + run: cmake --build --preset linux/release-ccache --target docgen -j - name: Archive asymptote.pdf uses: actions/upload-artifact@v4 with: