Skip to content

Commit

Permalink
enable build cache (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight authored Nov 24, 2024
1 parent 6efa0d8 commit 7b137a5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Restore Conan Cache
id: conan-cache-restore
uses: actions/cache/restore@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/spectatord/spectatord/cmake-build
/home/runner/work/spectatord/spectatord/ska
key: ${{ runner.os }}-conan

- name: Install System Dependencies
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Expand All @@ -23,3 +33,13 @@ jobs:
./setup-venv.sh
source venv/bin/activate
./build.sh
- name: Save Conan Cache
id: conan-cache-save
uses: actions/cache/save@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/spectatord/spectatord/cmake-build
/home/runner/work/spectatord/spectatord/ska
key: ${{ steps.conan-cache-restore.outputs.cache-primary-key }}

0 comments on commit 7b137a5

Please sign in to comment.