Skip to content

Commit

Permalink
cache apt
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Jan 11, 2025
1 parent 0fae150 commit 252be14
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
steps:
- name: Install tools
if: matrix.image == 'ubuntu'
run: |
sudo apt update
sudo apt install -y valgrind softhsm2
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: valgrind softhsm2

- name: Install tools
if: matrix.image == 'macOS'
Expand All @@ -72,24 +72,19 @@ jobs:
- name: Cache ${{ matrix.target }} deps
id: cache
uses: actions/cache/restore@v4
uses: actions/cache@v4
with:
save-always: true
path: ${{ env.CI_CACHE }}
key: dep-${{ matrix.target }}-${{ matrix.tls }}-${{ hashFiles('./vcpkg.json') }}
restore-keys: |
dep-${{ matrix.target }}-${{ matrix.tls }}-
dep-${{ matrix.target }}-
- uses: lukka/run-vcpkg@v11
with:
doNotCache: false
runVcpkgInstall: false
# runVcpkgFormatString: '[`install`, `--debug`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--x-feature=all-deps`]'

- name: run vcpkg install
shell: bash
run: |
echo $CI_CACHE
mkdir -p '${{ env.CI_CACHE }}'
vcpkg install --x-feature=all-deps
ls -l '${{ github.workspace }}/.ci.cache'

- uses: lukka/run-cmake@v10
name: Configure build
Expand Down Expand Up @@ -139,13 +134,6 @@ jobs:
cd build
ctest --output-on-failure --no-compress-output -T memcheck
- name: Cache ${{ matrix.target }} deps
uses: actions/cache/save@v4
if: always()
with:
key: ${{ steps.cache.outputs.cache-primary-key }}
path: ${{ env.CI_CACHE }}

- name: upload test summary
if: always()
uses: mikepenz/action-junit-report@v4
Expand Down

0 comments on commit 252be14

Please sign in to comment.