Skip to content

Commit

Permalink
github-ci: Add a test for aarch64
Browse files Browse the repository at this point in the history
Add a gen-vm test for aarch64. We do this as a seperate job so that it
runs in parallel with the x86 one.

While we are at it we also cleanup the naming convention for the CI
tests.
  • Loading branch information
sbates130272 committed Nov 11, 2024
1 parent ad2024a commit 6913030
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: qemu-minimal-smoke-test
name: smoke-tests

on:
pull_request:
branches: [ main ]

jobs:
ubuntu-smoke-test:
name: ubuntu-smoke-test

ubuntu-latest-x86:
name: ubuntu-latest-x86
runs-on: ubuntu-latest
steps:
- name: Check out code using action/checkout
Expand All @@ -15,11 +16,31 @@ jobs:
run: sudo apt update && sudo apt install -y qemu-system-x86 cloud-image-utils
- name: Generate an ssh key-pair for this test
run: ssh-keygen -t rsa -q -f "$HOME/.ssh/id_rsa" -N ""
- name: Run a qemu-based ./gen-vm smoke-test
- name: Generate a x86_64 qemu-based ./gen-vm smoke-test
run: ./gen-vm
working-directory: qemu
env:
VM_NAME: qemu-minimal-smoke-test
KVM: none
USERNAME: ubuntu
PASS: password

ubuntu-latest-arm64:
name: ubuntu-latest-arm64
runs-on: ubuntu-latest
steps:
- name: Check out code using action/checkout
uses: actions/[email protected]
- name: Install a couple of packages via the apt package manager
run: sudo apt update && sudo apt install -y qemu-system-arm cloud-image-utils
- name: Generate an ssh key-pair for this test
run: ssh-keygen -t rsa -q -f "$HOME/.ssh/id_rsa" -N ""
- name: Run a aarch64 qemu-based ./gen-vm smoke-test
run: ./gen-vm
working-directory: qemu
env:
VM_NAME: qemu-minimal-smoke-test-arm64
KVM: none
USERNAME: ubuntu
PASS: password
ARCH: arm64
6 changes: 3 additions & 3 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: qemu-minimal-spell-check
name: spell-check

on:
pull_request:
Expand All @@ -9,8 +9,8 @@ on:
- '.spellcheck.yaml'

jobs:
ubuntu-spell-check:
name: ubuntu-spell-check
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Check out code.
Expand Down
2 changes: 1 addition & 1 deletion qemu/gen-vm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# ----------------
#
# Note that for Jammy you need the cloud-init as well as
# cloud-image-utils and for focal a good generic call would be:
# cloud-image-utils and for jammy a good generic call would be:
#
# RELEASE=jammy VM_NAME=stephen ./gen-vm
#
Expand Down

0 comments on commit 6913030

Please sign in to comment.