Skip to content

Commit ce401f5

Browse files
committed
INITIAL WORKFLOW DISPATCH
1 parent 219a89c commit ce401f5

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/zfs-qemu.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ name: zfs-qemu
22

33
on:
44
push:
5-
pull_request:
5+
# pull_request:
6+
workflow_dispatch:
7+
inputs:
8+
save_rpms:
9+
type: boolean
10+
required: false
11+
default: false
12+
description: 'Build DKMS & KMOD RPMs and save to artifacts'
613

714
concurrency:
815
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -22,7 +29,7 @@ jobs:
2229
- name: Generate OS config and CI type
2330
id: os
2431
run: |
25-
FULL_OS='["almalinux8", "almalinux9", "centos-stream9", "debian11", "debian12", "fedora40", "fedora41", "freebsd13-3r", "freebsd13-4s", "freebsd14-1r", "freebsd14-2s", "freebsd15-0c", "ubuntu20", "ubuntu22", "ubuntu24"]'
32+
FULL_OS='["almalinux8", "almalinux9", "fedora40", "fedora41"]'
2633
QUICK_OS='["almalinux8", "almalinux9", "debian12", "fedora41", "freebsd13-3r", "freebsd14-2r", "ubuntu24"]'
2734
# determine CI type when running on PR
2835
ci_type="full"
@@ -53,7 +60,8 @@ jobs:
5360
# FreeBSD Release: freebsd13-3r, freebsd13-4r, freebsd14-1r, freebsd14-2r
5461
# FreeBSD Stable: freebsd13-4s, freebsd14-2s
5562
# FreeBSD Current: freebsd15-0c
56-
os: ${{ fromJson(needs.test-config.outputs.test_os) }}
63+
# os: ${{ fromJson(needs.test-config.outputs.test_os) }}
64+
os: ['almalinux9', 'fedora41']
5765
runs-on: ubuntu-24.04
5866
steps:
5967
- uses: actions/checkout@v4
@@ -70,31 +78,11 @@ jobs:
7078

7179
- name: Install dependencies
7280
timeout-minutes: 20
73-
run: |
74-
echo "Install dependencies in QEMU machine"
75-
IP=192.168.122.10
76-
while pidof /usr/bin/qemu-system-x86_64 >/dev/null; do
77-
ssh 2>/dev/null zfs@$IP "uname -a" && break
78-
done
79-
scp .github/workflows/scripts/qemu-3-deps.sh zfs@$IP:qemu-3-deps.sh
80-
PID=`pidof /usr/bin/qemu-system-x86_64`
81-
ssh zfs@$IP '$HOME/qemu-3-deps.sh' ${{ matrix.os }}
82-
# wait for poweroff to succeed
83-
tail --pid=$PID -f /dev/null
84-
sleep 5 # avoid this: "error: Domain is already active"
85-
rm -f $HOME/.ssh/known_hosts
81+
run: .github/workflows/scripts/qemu-3-deps.sh ${{ matrix.os }}
8682

8783
- name: Build modules
8884
timeout-minutes: 30
89-
run: |
90-
echo "Build modules in QEMU machine"
91-
sudo virsh start openzfs
92-
IP=192.168.122.10
93-
while pidof /usr/bin/qemu-system-x86_64 >/dev/null; do
94-
ssh 2>/dev/null zfs@$IP "uname -a" && break
95-
done
96-
rsync -ar $HOME/work/zfs/zfs zfs@$IP:./
97-
ssh zfs@$IP '$HOME/zfs/.github/workflows/scripts/qemu-4-build.sh' ${{ matrix.os }}
85+
run: .github/workflows/scripts/qemu-4-build.sh ${{ matrix.os }}
9886

9987
- name: Setup testing machines
10088
timeout-minutes: 5

0 commit comments

Comments
 (0)