-
Notifications
You must be signed in to change notification settings - Fork 37
72 lines (63 loc) · 1.83 KB
/
zfs-qemu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: zfs-qemu
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test-config:
name: Setup
runs-on: ubuntu-24.04
outputs:
test_os: ${{ steps.os.outputs.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
qemu-vm:
name: qemu-x86
needs: [ test-config ]
strategy:
fail-fast: false
matrix:
os: ["almalinux9", "fedora40"]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup QEMU
timeout-minutes: 10
run: .github/workflows/scripts/qemu-1-setup.sh
- name: Start build machine
timeout-minutes: 10
run: .github/workflows/scripts/qemu-2-start.sh ${{ matrix.os }}
- name: Install dependencies
timeout-minutes: 5
run: |
echo "Install dependencies in QEMU machine"
IP=192.168.122.10
while pidof /usr/bin/qemu-system-x86_64 >/dev/null; do
ssh 2>/dev/null zfs@$IP "uname -a" && break
done
scp .github/workflows/scripts/qemu-3-deps.sh zfs@$IP:qemu-3-deps.sh
rm -f $HOME/.ssh/known_hosts
- name: Build RPMs
timeout-minutes: 5
run: |
IP=192.168.122.10
rsync -ar ../zfsonlinux.github.com zfs@$IP:
ssh zfs@$IP '$HOME/zfsonlinux.github.com/.github/workflows/scripts/qemu-4-build.sh' ${{ matrix.os }}
rsync -a zfs@$IP:rpmbuild .
mkdir ~/rpms
echo "rpmbuild:"
cp rpmbuild/RPMS/noarch/* ~/rpms
cp rpmbuild/SRPMS/* ~/rpms
- uses: actions/upload-artifact@v4
id: artifact-upload
if: always()
with:
name: zfs-release-${{ matrix.os }}
path: ~/rpms/*
if-no-files-found: ignore