-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: a reusable workflow to kick a build/test/veristat *PER* arc…
…h/toolchain matrix.py was modified to embed the tests in the build-matrics, this way we can trigger all tests within 1 workflow without needing to do some filtering in the GH action side.
- Loading branch information
Showing
4 changed files
with
93 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Reusable Build/Test/Veristat workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
toolchain_full: | ||
required: true | ||
type: string | ||
toolchain: | ||
required: true | ||
type: string | ||
runs_on: | ||
required: true | ||
type: string | ||
llvm-version: | ||
required: true | ||
type: string | ||
kernel: | ||
required: true | ||
type: string | ||
tests: | ||
required: true | ||
type: string | ||
veristat_runs_on: | ||
required: true | ||
type: string | ||
secrets: | ||
AWS_ROLE_ARN: | ||
required: true | ||
|
||
jobs: | ||
# Build kernel and selftest | ||
build: | ||
uses: ./.github/workflows/kernel-build.yml | ||
with: | ||
arch: ${{ inputs.arch }} | ||
toolchain_full: ${{ inputs.toolchain_full }} | ||
toolchain: ${{ inputs.toolchain }} | ||
runs_on: ${{ inputs.runs_on }} | ||
llvm-version: ${{ inputs.llvm-version }} | ||
kernel: ${{ inputs.kernel }} | ||
|
||
test: | ||
uses: ./.github/workflows/kernel-test.yml | ||
needs: [build] | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(inputs.tests) }} | ||
with: | ||
arch: ${{ inputs.arch }} | ||
toolchain_full: ${{ inputs.toolchain_full }} | ||
runs_on: ${{ inputs.runs_on }} | ||
kernel: ${{ inputs.kernel }} | ||
test: ${{ matrix.test }} | ||
continue_on_error: ${{ toJSON(matrix.continue_on_error) }} | ||
timeout_minutes: ${{ matrix.timeout_minutes }} | ||
|
||
veristat: | ||
if: ${{ inputs.arch == 'x86_64' && inputs.toolchain == 'gcc' }} | ||
uses: ./.github/workflows/kernel-veristat.yml | ||
needs: [build] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
with: | ||
arch: ${{ inputs.arch }} | ||
toolchain: ${{ inputs.toolchain }} | ||
aws_region: ${{ vars.AWS_REGION }} | ||
runs_on: ${{ inputs.veristat_runs_on }} | ||
secrets: | ||
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} |
This file contains 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
This file contains 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