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

ci/vm-tests: streamline multi-arch testing #12

Merged
merged 1 commit into from
Jan 23, 2025
Merged
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
35 changes: 18 additions & 17 deletions .github/workflows/vm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,36 @@ on:
branches:
- main
jobs:
nix:
vm-tests:
strategy:
matrix:
system:
- x86_64-linux
- aarch64-linux
test:
- hjem-basic
- hjem-special-args
include:
- os: ubuntu-latest # x86
system: "x86_64-linux"
test: hjem-basic
- os: ubuntu-22.04-arm # aarch64
system: "aarch64-linux"
test: hjem-basic
- os: ubuntu-latest
system: "x86_64-linux"
test: hjem-special-args
- os: ubuntu-22.04-arm
system: "aarch64-linux"
test: hjem-special-args

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: "Set up QEMU support"
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: "" # no personalized self-merges tyvm.
logger: pretty
diagnostic-endpoint: ""
extra-conf: |
experimental-features = nix-command flakes
system-features = kvm nixos-test
allow-import-from-derivation = false
extra-platforms = aarch64-linux

- name: Checkout
uses: actions/checkout@v4

- name: Build packages
run: nix build -L .#checks.${{ matrix.system }}.${{ matrix.test }} -v
run: nix build -L .#checks.${{ matrix.system }}.${{ matrix.test }}
Loading