Skip to content

Commit

Permalink
workflows: use Freeze Code step for sel4test-hw
Browse files Browse the repository at this point in the history
This makes sure all build jobs run on the same repo manifest state.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Feb 14, 2024
1 parent 00fe501 commit e5c887e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/sel4test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ permissions:
contents: read

jobs:
hw-build:
name: HW Build
code:
name: Freeze Code
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' &&
github.event.action != 'labeled' &&
Expand All @@ -32,7 +32,21 @@ jobs:
github.event.action == 'labeled' &&
(github.event.label.name == 'hw-build' ||
github.event.label.name == 'hw-test') }}
# To reduce the load (especiually on the machine queue) we cancel any older
outputs:
xml: ${{ steps.repo.outputs.xml }}
steps:
- id: repo
uses: seL4/ci-actions/repo-checkout@master
with:
manifest_repo: sel4test-manifest
manifest: master.xml
sha: ${{ github.event.pull_request.head.sha }}

hw-build:
name: HW Build
runs-on: ubuntu-latest
needs: code
# To reduce the load (especially on the machine queue) we cancel any older
# runs of this workflow for the current PR.
concurrency:
group: ${{ github.workflow }}-sel4test-pr-build-${{ github.event.number }}
Expand All @@ -47,9 +61,9 @@ jobs:
- name: Build
uses: seL4/ci-actions/sel4test-hw@master
with:
xml: ${{ needs.code.outputs.xml }}
march: ${{ matrix.march }}
compiler: ${{ matrix.compiler }}
sha: ${{ github.event.pull_request.head.sha }}
- name: Upload images
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit e5c887e

Please sign in to comment.