Skip to content

Commit

Permalink
GitHub Actions: specify BuildJet Runner
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart authored and milan-zededa committed Jul 1, 2024
1 parent ce7f17c commit 4a75865
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ jobs:
runs-on: ubuntu-latest
outputs:
runner: ${{ steps.fork-check.outputs.runner }}
runner_virt: ${{ steps.fork-check.outputs.runner_virt }}
steps:
- id: fork-check
run: |
if [[ "${{ github.event.repository.full_name}}" == "lf-edge/eve" ]] || [[ "${{ github.event.repository.full_name}}" == "lf-edge/eden" ]]; then
echo "runner=buildjet-4vcpu-ubuntu-2204" >> "$GITHUB_OUTPUT"
echo "runner=['buildjet-4vcpu-ubuntu-2204', 'buildjet-pinned-7950x']" >> "$GITHUB_OUTPUT"
echo "runner_virt=['buildjet-4vcpu-ubuntu-2204', 'buildjet-pinned-7950x']" >> "$GITHUB_OUTPUT"
else
echo "runner=ubuntu-22.04" >> "$GITHUB_OUTPUT"
echo "runner=['ubuntu-22.04']" >> "$GITHUB_OUTPUT"
echo "runner_virt=['ubuntu-22.04']" >> "$GITHUB_OUTPUT"
fi
smoke:
Expand All @@ -51,7 +54,7 @@ jobs:
tpm: [true, false]
name: Smoke tests
needs: determine-runner
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -72,7 +75,7 @@ jobs:
networking:
name: Networking test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -97,7 +100,7 @@ jobs:
file_system: ['ext4', 'zfs']
name: Storage test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -118,7 +121,7 @@ jobs:
lps-loc:
name: LPS LOC test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -143,7 +146,7 @@ jobs:
file_system: ['ext4', 'zfs']
name: EVE upgrade test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -164,7 +167,7 @@ jobs:
user-apps:
name: User apps test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand All @@ -185,7 +188,7 @@ jobs:
virtualization:
name: Virtualization test suite
needs: [determine-runner]
runs-on: ${{ needs.determine-runner.outputs.runner }}
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner_virt) }}
steps:
- name: Get code
uses: actions/[email protected]
Expand Down

0 comments on commit 4a75865

Please sign in to comment.