mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
ci: two fixed boot loader lanes (the runner ignores max-parallel)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
13e4bbd0d6
commit
02c207c9e5
1 file changed
+13
-10
@@ -96,7 +96,7 @@ jobs:
|
|||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test ${{ matrix.loader }}
|
name: Test ${{ matrix.lane }}
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
@@ -105,11 +105,10 @@ jobs:
|
|||||||
options: --privileged
|
options: --privileged
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
# The runner has ~20 GB of RAM for this: an install VM takes 6 GB (4 GB once installed), so two at a time (needs the
|
# The runner ignores max-parallel, so two fixed lanes: two VMs at a time (~12 GB of RAM at most), the
|
||||||
# runner's `capacity: 2`; with 1 they run one after the other).
|
# loaders of a lane one after the other.
|
||||||
max-parallel: 2
|
|
||||||
matrix:
|
matrix:
|
||||||
loader: [limine, systemd-boot, grub]
|
lane: ["limine grub", "systemd-boot"]
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -161,7 +160,7 @@ jobs:
|
|||||||
name: iso
|
name: iso
|
||||||
path: iso
|
path: iso
|
||||||
|
|
||||||
- name: Boot loader test (${{ matrix.loader }})
|
- name: Boot loader test (${{ matrix.lane }})
|
||||||
env:
|
env:
|
||||||
CI: "1"
|
CI: "1"
|
||||||
VM_TIMEZONE: UTC
|
VM_TIMEZONE: UTC
|
||||||
@@ -175,16 +174,20 @@ jobs:
|
|||||||
ssh-keygen -q -t ed25519 -N "" -C steamify-vm -f ~/.ssh/steamify-vm_ed25519
|
ssh-keygen -q -t ed25519 -N "" -C steamify-vm -f ~/.ssh/steamify-vm_ed25519
|
||||||
iso="$(ls "$VM_ISO_DIR"/*.iso | head -n 1)"
|
iso="$(ls "$VM_ISO_DIR"/*.iso | head -n 1)"
|
||||||
cd steamify-cachyos-dev
|
cd steamify-cachyos-dev
|
||||||
VM_ISO="$iso" scripts/vmbootloadertest.sh "${{ matrix.loader }}" --install
|
rc=0
|
||||||
|
for loader in ${{ matrix.lane }}; do
|
||||||
|
VM_ISO="$iso" scripts/vmbootloadertest.sh "$loader" --install || rc=1
|
||||||
|
done
|
||||||
|
exit $rc
|
||||||
|
|
||||||
- name: Logs
|
- name: Logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-${{ matrix.loader }}
|
name: test-${{ strategy.job-index }}
|
||||||
path: |
|
path: |
|
||||||
/root/vms/bl-${{ matrix.loader }}.test.log
|
/root/vms/bl-*.test.log
|
||||||
/root/vms/bl-${{ matrix.loader }}/vm.log
|
/root/vms/bl-*/vm.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user