aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-20 23:33:31 +0800
committercrupest <crupest@outlook.com>2022-01-20 23:33:31 +0800
commitbbccf1a653147e6678b637b1c02169dc83209d94 (patch)
tree8a5f8a55e566a61e285f87222b3a6d4def2559c2 /.github/workflows
parent31b44ba689a6a8681e3e7b39942df3c0d4e47d37 (diff)
downloadcru-bbccf1a653147e6678b637b1c02169dc83209d94.tar.gz
cru-bbccf1a653147e6678b637b1c02169dc83209d94.tar.bz2
cru-bbccf1a653147e6678b637b1c02169dc83209d94.zip
...
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e7ea768d..4a03b8ee 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,7 +13,7 @@ on:
- "**/README.md"
env:
- VCPKG_DEFAULT_BINARY_CACHE: /tmp/vcpkg-cache
+ VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives
jobs:
macos-build:
@@ -26,7 +26,7 @@ jobs:
- name: Restore Cache
uses: actions/cache@v2
with:
- path: /tmp/vcpkg-cache
+ path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
key: vcpkg-${{ runner.os }}
- name: Setup Ninja
@@ -36,6 +36,7 @@ jobs:
- name: Build
run: |
+ mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -S. -Bbuild -G Ninja
cmake --build build --config Debug --target all
@@ -54,7 +55,7 @@ jobs:
- name: Restore Cache
uses: actions/cache@v2
with:
- path: /tmp/vcpkg-cache
+ path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
key: vcpkg-${{ runner.os }}
- name: Setup Ninja
@@ -64,6 +65,7 @@ jobs:
- name: Build
run: |
+ mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S. -Bbuild -G Ninja
cmake --build build --config Debug --target all