chore(deps): update actions/upload-artifact action to v5 (release/v2.x) #168
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: CI tests | |
| on: | |
| workflow_call: | |
| push: | |
| branches: | |
| - main | |
| - release/v[0-9]+.(0|x) | |
| - release/v[0-9]+.[0-9]+.(0|x) | |
| - release/v[0-9]+.[0-9]+.[0-9]+ | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write # Upload artefacts to release. | |
| env: | |
| PUBLIC_REGISTRY: ghcr.io | |
| jobs: | |
| ci: | |
| runs-on: runs-on,runner=2cpu-linux-x64,run-id=${{ github.run_id }} | |
| steps: | |
| - | |
| # Add support for more platforms with QEMU (optional) | |
| # https://github.com/docker/setup-qemu-action | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3 | |
| - name: Check out repository code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Basic CI | |
| run: make ci | |
| - name: Upload CI files to artifacts (on failure) | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 | |
| if: failure() | |
| with: | |
| path: 'ci' | |
| retention-days: 7 |