Skip to content

Commit

Permalink
Update ci.yml to use unreleased devcontainers/ci to have cacheTo su…
Browse files Browse the repository at this point in the history
…pport

Signed-off-by: Torsten Marco Knodt <[email protected]>
  • Loading branch information
torsknod2 authored Jan 8, 2025
1 parent a4753e6 commit 5199f8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,16 @@ jobs:
queries: security-extended,security-and-quality

- name: Run devcontainer
uses: devcontainers/ci@v0.3
uses: devcontainers/ci@3998f9ee7179e91ad72065e0b68fe2ebed581346 # unreleased to have `cacheTo` support
with:
imageName: ghcr.io/torsknod2/mdspantest-devcontainer
imageTag: ${{ env.devcontainer_tag }}${{ github.ref == 'refs/heads/main' && ',latest' || '' }}
cacheFrom: |
type=local,src=/tmp/.buildx-cache
type=registry,ref=ghcr.io/torsknod2/mdspantest-devcontainer
cacheTo: |
type=local,src=/tmp/.buildx-cache
type=registry,ref=ghcr.io/torsknod2/mdspantest-devcontainer
runCmd: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/x86_64-linux-gnu-gcc-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/x86_64-linux-gnu-g++-14
cmake --build build --verbose --parallel
Expand Down Expand Up @@ -170,4 +173,4 @@ jobs:

# - name: Deploy to GitHub Pages
# if: github.ref == 'refs/heads/main'
# uses: actions/deploy-pages@v4
# uses: actions/deploy-pages@v4

0 comments on commit 5199f8a

Please sign in to comment.