Skip to content

Commit

Permalink
Update tests-misc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Sep 6, 2024
1 parent fdb4554 commit 665cd51
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/tests-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,33 +142,23 @@ jobs:
# confirm checksum
sha256sum -c checksum.sha256
cargo-check-benches-branches:
cargo-check-benches:
needs: [ set-image ]
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
timeout-minutes: 60
outputs:
branch: ${{ steps.branch.outputs.branch }}
runs-on: ubuntu-latest
steps:
- name: Branch
id: branch
run: |
echo "branch=['${{ github.base_ref }}', '${{ github.head_ref }}']" >> $GITHUB_OUTPUT
cargo-check-benches:
needs: [ set-image, cargo-check-benches-branches ]
timeout-minutes: 60
strategy:
matrix:
branch: ${{ fromJSON(needs.cargo-check-benches-branches.outputs.branch) }}
branch: [ master, current ]
runs-on: ${{ needs.set-image.outputs.RUNNER }}
container:
image: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
# if branch is master, use the branch, otherwise set empty string, so it uses the current context
# either PR (including forks) or merge group (main repo)
ref: ${{ matrix.branch == 'master' && matrix.branch || '' }}

- name: script
run: |
Expand All @@ -190,6 +180,7 @@ jobs:

node-bench-regression-guard:
timeout-minutes: 20
if: always()
runs-on: arc-runners-polkadot-sdk
needs: [ set-image, cargo-check-benches ]
steps:
Expand All @@ -199,13 +190,13 @@ jobs:
- name: Download artifact (master run)
uses: actions/download-artifact@v4.1.8
with:
name: cargo-check-benches-${{ github.base_ref }}-${{ github.sha }}
name: cargo-check-benches-master-${{ github.sha }}
path: ./artifacts/master

- name: Download artifact (current run)
uses: actions/download-artifact@v4.1.8
with:
name: cargo-check-benches-${{ github.head_ref }}-${{ github.sha }}
name: cargo-check-benches-current-${{ github.sha }}
path: ./artifacts/current

- name: script
Expand Down

0 comments on commit 665cd51

Please sign in to comment.