ci: bump actions/upload-artifact from 4 to 7 #93
Workflow file for this run
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: Package | |
| # On a packaging change in a PR, build both arches (no push) so breakage is caught before | |
| # merge. Building and pushing the versioned image to GHCR happens in the Release workflow, | |
| # so there is nothing to build on push to main here (main is protected, so the merged tree | |
| # is the one already built on the PR). | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| changes: | |
| name: Detect changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| pkg: ${{ steps.filter.outputs.pkg }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| pkg: | |
| - 'src/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'Dockerfile' | |
| - '.dockerignore' | |
| - '.github/workflows/package.yml' | |
| validate: | |
| name: Build image (${{ matrix.platform }}) | |
| needs: changes | |
| if: needs.changes.outputs.pkg == 'true' | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: linux/amd64 | |
| runner: ubuntu-latest | |
| - platform: linux/arm64 | |
| runner: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: docker/setup-buildx-action@v4 | |
| # Build both arches (no push) so arm64 breakage surfaces on the PR, not at release. | |
| - name: Build image (no push) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| platforms: ${{ matrix.platform }} | |
| push: false | |
| cache-from: type=gha,scope=${{ matrix.platform }} | |
| cache-to: type=gha,mode=max,scope=${{ matrix.platform }} |