Bump the all group across 3 directories with 5 updates (#1122) #3560
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 | |
| on: | |
| push: | |
| branches-ignore: | |
| - dependabot/** | |
| pull_request: | |
| schedule: | |
| - cron: 45 3 * * 2 # every Tuesday at 3:45 UTC | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: {} | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Compute the checks for ${{ github.event_name }} | |
| id: checks | |
| run: | | |
| x() { | |
| local check=$1 | |
| [[ $GITHUB_BASE_REF == dev/* && $check == changelog ]] && return | |
| while [[ $# -gt 1 ]]; do | |
| shift | |
| [[ $1 == $GITHUB_EVENT_NAME ]] || continue | |
| [[ -z "$CHECKS" ]] || CHECKS+=', ' | |
| CHECKS+="\"$check\"" | |
| done | |
| true | |
| } | |
| x copyright pull_request | |
| x changelog pull_request | |
| x textreview pull_request | |
| x sync pull_request push schedule | |
| x publish pull_request push schedule | |
| x markdown pull_request push schedule | |
| x tombi pull_request push schedule | |
| x applets pull_request push schedule | |
| x runners pull_request push schedule | |
| for i in $(seq 0 10); do | |
| x tests-$i pull_request push schedule | |
| done | |
| for i in $(seq 0 1); do | |
| x hw-host-$i pull_request push schedule | |
| done | |
| x book pull_request push schedule | |
| for i in $(seq 0 1); do | |
| x artifacts-$i pull_request push schedule | |
| done | |
| x footprint pull_request push | |
| echo "checks=[$CHECKS]" >> $GITHUB_OUTPUT | |
| release=$(git log -1 --pretty=%s | sed -n 's/^Release all crates (#\([0-9]*\))$/\1/p') | |
| [[ $GITHUB_EVENT_NAME == push ]] || release= | |
| [[ $GITHUB_REF == refs/heads/main ]] || release= | |
| echo release=${release:-0} >> $GITHUB_OUTPUT | |
| outputs: | |
| checks: ${{ steps.checks.outputs.checks }} | |
| release: ${{ steps.checks.outputs.release }} | |
| cache: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - id: cache | |
| name: Restore (then save) the cache | |
| uses: ./.github/actions/ci-cache | |
| with: | |
| mode: save | |
| - if: steps.cache.outputs.cache-hit != 'true' | |
| name: Compute the cache | |
| run: ./scripts/ci-cache.sh | |
| matrix: | |
| runs-on: ubuntu-latest | |
| needs: [checks, cache] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| check: ${{ fromJSON(needs.checks.outputs.checks) }} | |
| name: ${{ matrix.check }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run the ${{ matrix.check }} check | |
| uses: ./.github/actions/ci-checks | |
| with: | |
| check: ${{ matrix.check }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| timeout-minutes: 30 | |
| ubuntu: | |
| runs-on: ubuntu-latest | |
| needs: matrix | |
| steps: | |
| - run: true | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - run: ./scripts/setup.sh | |
| - run: cargo xtask help | |
| ci: | |
| runs-on: ubuntu-latest | |
| needs: [ubuntu, macos] | |
| steps: | |
| - run: true | |
| pages: | |
| runs-on: ubuntu-latest | |
| needs: ci | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Restore the cache | |
| uses: ./.github/actions/ci-cache | |
| - run: ./scripts/setup.sh | |
| - run: ./scripts/pages.sh | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [checks, ci] | |
| if: ${{ needs.checks.outputs.release != 0 }} | |
| permissions: | |
| attestations: write | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Restore the cache | |
| uses: ./.github/actions/ci-cache | |
| - run: ./scripts/setup.sh | |
| - run: ./scripts/artifacts.sh | |
| - uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1 | |
| with: | |
| subject-path: 'artifacts/*' | |
| - run: | | |
| COMMIT=$(git rev-parse -q --verify HEAD) | |
| DATE=$(git log -1 --pretty=%cs) | |
| xargs --arg-file=artifacts.txt --delimiter='\n' \ | |
| gh release create release/$DATE --target=$COMMIT \ | |
| --title="Release $DATE" --notes-file=notes.txt | |
| env: | |
| GH_TOKEN: ${{ github.token }} |