From 5199f8a3e2f393bd9b50f5e7d579c51edd132556 Mon Sep 17 00:00:00 2001 From: Torsten Marco Knodt <191793499+torsknod2@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:43:08 +0100 Subject: [PATCH] Update ci.yml to use unreleased devcontainers/ci to have `cacheTo` support Signed-off-by: Torsten Marco Knodt <191793499+torsknod2@users.noreply.github.com> --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa94e3f..8b6e0ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -170,4 +173,4 @@ jobs: # - name: Deploy to GitHub Pages # if: github.ref == 'refs/heads/main' - # uses: actions/deploy-pages@v4 \ No newline at end of file + # uses: actions/deploy-pages@v4