test(deps): bump the npm group with 2 updates (#777) #478
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Prime Cache | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }} | |
| jobs: | |
| prime-docker-cache: | |
| # The ARM64 build segfaults with Ubuntu 24.04, so use 22.04 (for now) | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| flavor: ["cpp", "rust"] | |
| steps: | |
| - uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| if: matrix.flavor == 'cpp' | |
| id: buildkit-cache | |
| with: | |
| path: root-ccache | |
| key: buildkit-cache-${{ github.run_id }} | |
| restore-keys: | | |
| buildkit-cache | |
| - uses: reproducible-containers/buildkit-cache-dance@5b6db76d1da5c8b307d5d2e0706d266521b710de # v3.1.2 | |
| if: matrix.flavor == 'cpp' | |
| with: | |
| cache-map: | | |
| { | |
| "root-ccache": "/root/.ccache" | |
| } | |
| skip-extraction: ${{ steps.buildkit-cache.outputs.cache-hit }} | |
| - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0 | |
| with: | |
| file: .devcontainer/${{ matrix.flavor }}/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha,scope=${{ github.repository }}-${{ matrix.flavor }} | |
| cache-to: type=gha,mode=max,scope=${{ github.repository }}-${{ matrix.flavor }} | |
| prime-xwin-cache: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| set -Eeuo pipefail | |
| mkdir test | |
| docker run --rm --mount type=bind,src="$(pwd)/test",dst=/ws -w /ws ghcr.io/${{ github.repository }}-cpp:latest xwin --accept-license splat --preserve-ms-arch-notation | |
| - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: test/.xwin-cache | |
| key: xwin-cache-${{ github.run_id }} |