Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: switch to running Eden on GitHub runners #1035

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 43 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,7 @@
type: string

jobs:
determine-runner:
name: Determine best available runner
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', '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_virt=['ubuntu-22.04']" >> "$GITHUB_OUTPUT"
fi


Check failure on line 31 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / yetus

blanks:end of line
smoke:
continue-on-error: true
strategy:
Expand All @@ -53,9 +37,13 @@
file_system: ['ext4', 'zfs']
tpm: [true, false]
name: Smoke tests
needs: determine-runner
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -79,9 +67,13 @@

networking:
name: Networking test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -106,9 +98,13 @@
matrix:
file_system: ['ext4', 'zfs']
name: Storage test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -129,9 +125,13 @@

lps-loc:
name: LPS LOC test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -156,9 +156,13 @@
matrix:
file_system: ['ext4', 'zfs']
name: EVE upgrade test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -179,9 +183,13 @@

user-apps:
name: User apps test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand All @@ -202,9 +210,13 @@

virtualization:
name: Virtualization test suite
needs: [determine-runner]
runs-on: ${{ fromJSON(needs.determine-runner.outputs.runner_virt) }}
runs-on: ubuntu-22.04
steps:
- name: Print info
run: |
nproc
cat /proc/cpuinfo
shell: bash
- name: Get code
uses: actions/[email protected]
with:
Expand Down
Loading