Skip to content

Commit 13493bb

Browse files
authored
Cache the external data that is fetched by CMake for CI (#756)
1 parent 304440e commit 13493bb

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/key4hep.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: cvmfs-contrib/github-action-cvmfs@v4
22+
- uses: key4hep/key4hep-actions/cache-external-data@main
2223
- uses: aidasoft/run-lcg-view@v4
2324
with:
2425
container: el9

.github/workflows/sanitizers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232
- uses: cvmfs-contrib/github-action-cvmfs@v4
33+
- uses: key4hep/key4hep-actions/cache-external-data@main
3334
- uses: aidasoft/run-lcg-view@v4
3435
with:
3536
release-platform: LCG_106b/x86_64-el9-${{ matrix.compiler }}-opt

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build-and-test:
1216
runs-on: ubuntu-latest
@@ -22,13 +26,14 @@ jobs:
2226
steps:
2327
- uses: actions/checkout@v4
2428
- uses: cvmfs-contrib/github-action-cvmfs@v4
29+
- uses: key4hep/key4hep-actions/cache-external-data@main
2530
- uses: aidasoft/run-lcg-view@v4
2631
with:
2732
release-platform: ${{ matrix.LCG }}
2833
run: |
2934
echo "::group::Run CMake"
3035
export JULIA_DEPOT_PATH="$(mktemp -d -p /tmp -t julia_depot_XXXXX):"
31-
mkdir build install
36+
mkdir -p build install
3237
cd build
3338
cmake -DENABLE_SIO=ON \
3439
-DENABLE_JULIA=ON \
@@ -43,7 +48,7 @@ jobs:
4348
echo "::endgroup::"
4449
echo "::group::Build"
4550
ninja -k0
46-
echo "::endgroup"
51+
echo "::endgroup::"
4752
echo "::group::Julia StaticArrays Package Install"
4853
julia -e 'import Pkg; Pkg.add("StaticArrays")'
4954
echo "::endgroup"

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: cvmfs-contrib/github-action-cvmfs@v4
22+
- uses: key4hep/key4hep-actions/cache-external-data@main
2223
- uses: aidasoft/run-lcg-view@v4
2324
with:
2425
release-platform: ${{ matrix.LCG }}

0 commit comments

Comments
 (0)