Skip to content

Commit

Permalink
configure and build in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
perfplay committed Dec 8, 2024
1 parent 890e3e9 commit b8e7f61
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ on:
env:
USE_CACHE: ${{ github.event.inputs.use_cache || 'true' }}
CACHE_VERSION: v01
CACHE_PATHS: |
~/.cargo
~/.hunter
~/.cache/pip
~/.cache/vcpkg
.vcpkg
.venv
.build


jobs:
build-and-test:
Expand All @@ -38,13 +31,23 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

with:
submodules: true
fetch-depth: 0

- name: "Restore cache dependencies"
id: cache-restore
if: ${{ env.USE_CACHE == 'true' }}
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_PATHS }}
path: |
~/.cargo
~/.hunter
~/.cache/pip
~/.cache/vcpkg
.vcpkg
.venv
.build
key: jam-${{ runner.os }}-${{ github.job }}-${{ env.CACHE_VERSION }}
restore-keys: |
jam-${{ runner.os }}-${{ github.job }}
Expand Down

0 comments on commit b8e7f61

Please sign in to comment.