88 build :
99 strategy :
1010 matrix :
11- test_os : [centos-9]
12- test_runner : [ubuntu-24.04-arm]
11+ # test_os: [fedora-42, fedora-43, centos-9, centos-10]
12+ test_os : [centos-10]
13+ test_runner : [ubuntu-24.04]
1314
1415 runs-on : ${{ matrix.test_runner }}
1516
@@ -23,61 +24,67 @@ jobs:
2324
2425 - uses : actions/checkout@v4
2526
26- - name : Build bootc and bootc image
27- run : sudo tests/build.sh ${{ matrix.test_os }}
27+ - name : Set architecture variable
28+ id : set_arch
29+ run : echo "ARCH=$(arch)" >> $GITHUB_ENV
2830
29- - name : Grant sudo user permission to archive files
31+ - name : Build bootc and bootc image
3032 run : |
31- sudo chmod 0755 /tmp/tmp-bootc-build/id_rsa
33+ sudo tests/build.sh ${{ matrix.test_os }}
34+ # So the archiver works
35+ sudo chmod 0755 target/id_rsa
3236
3337 - name : Archive bootc disk image - disk.raw
34- if : matrix.test_runner == 'ubuntu-latest'
3538 uses : actions/upload-artifact@v4
3639 with :
37- name : PR-${{ github.event.number }}-${{ matrix.test_os }}-disk
38- path : /tmp/tmp-bootc-build /disk.raw
40+ name : PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ env.ARCH }}- disk
41+ path : target /disk.raw
3942 retention-days : 1
4043
4144 - name : Archive SSH private key - id_rsa
42- if : matrix.test_runner == 'ubuntu-latest'
4345 uses : actions/upload-artifact@v4
4446 with :
45- name : PR-${{ github.event.number }}-${{ matrix.test_os }}-id_rsa
46- path : /tmp/tmp-bootc-build /id_rsa
47+ name : PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ env.ARCH }}- id_rsa
48+ path : target /id_rsa
4749 retention-days : 1
4850
4951 test :
5052 needs : build
5153 strategy :
5254 matrix :
53- test_os : [fedora-41, fedora-42, fedora-43, centos-9]
55+ # test_os: [fedora-42, fedora-43, centos-9, centos-10]
56+ test_os : [centos-10]
5457 tmt_plan : [test-01-readonly, test-20-local-upgrade, test-21-logically-bound-switch, test-22-logically-bound-install, test-23-install-outside-container, test-24-local-upgrade-reboot]
5558
5659 runs-on : ubuntu-latest
5760
5861 steps :
5962 - uses : actions/checkout@v4
6063
64+ - name : Set architecture variable
65+ id : set_arch
66+ run : echo "ARCH=$(arch)" >> $GITHUB_ENV
67+
6168 - name : Install dependence
6269 run : |
6370 sudo apt-get update
64- sudo apt install -y qemu-kvm qemu-system
65- pip install --user tmt
71+ sudo apt install -y qemu-kvm qemu-system just
72+ sudo pip install --user tmt
6673
6774 - name : Create folder to save disk image
68- run : mkdir -p /tmp/tmp-bootc-build
75+ run : mkdir -p target
6976
7077 - name : Download disk.raw
7178 uses : actions/download-artifact@v4
7279 with :
73- name : PR-${{ github.event.number }}-${{ matrix.test_os }}-disk
74- path : /tmp/tmp-bootc-build
80+ name : PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ env.ARCH }}- disk
81+ path : target
7582
7683 - name : Download id_rsa
7784 uses : actions/download-artifact@v4
7885 with :
79- name : PR-${{ github.event.number }}-${{ matrix.test_os }}-id_rsa
80- path : /tmp/tmp-bootc-build
86+ name : PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ env.ARCH }}- id_rsa
87+ path : target
8188
8289 - name : Enable KVM group perms
8390 run : |
@@ -87,11 +94,11 @@ jobs:
8794 ls -l /dev/kvm
8895
8996 - name : Run test
90- run : tests/test.sh ${{ matrix.tmt_plan }}
97+ run : sudo tests/test.sh ${{ matrix.tmt_plan }}
9198
9299 - name : Archive TMT logs
93100 if : always()
94101 uses : actions/upload-artifact@v4
95102 with :
96- name : tmt-log-PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ matrix.tmt_plan }}
103+ name : tmt-log-PR-${{ github.event.number }}-${{ matrix.test_os }}-${{ env.ARCH }}-${{ matrix.tmt_plan }}
97104 path : /var/tmp/tmt
0 commit comments