From 4a758657737d92c3b719a2a46f237a8b9a735103 Mon Sep 17 00:00:00 2001 From: Pavel Abramov Date: Thu, 27 Jun 2024 15:26:02 +0200 Subject: [PATCH] GitHub Actions: specify BuildJet Runner Signed-off-by: Pavel Abramov --- .github/workflows/test.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd4ba18e6..3bd567e38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1 @@ -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/checkout@v4.1.1