Skip to content

Commit 2443877

Browse files
committed
Update boot_tester.yml
Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
1 parent c1184f4 commit 2443877

1 file changed

Lines changed: 49 additions & 9 deletions

File tree

.github/workflows/boot_tester.yml

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,46 @@ permissions:
1111
jobs:
1212
boot-test:
1313
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
include:
17+
- distribution: "emt3"
18+
image_type: "raw"
19+
script: "scripts/build_emt3_raw.sh"
20+
- distribution: "emt3"
21+
image_type: "iso"
22+
script: "scripts/build_emt3_iso.sh"
23+
- distribution: "emt3"
24+
image_type: "immutable"
25+
script: "scripts/build_emt3_immutable.sh"
26+
- distribution: "elxr12"
27+
image_type: "raw"
28+
script: "scripts/build_elxr12_raw.sh"
29+
- distribution: "elxr12"
30+
image_type: "iso"
31+
script: "scripts/build_elxr12_iso.sh"
32+
- distribution: "elxr12"
33+
image_type: "immutable"
34+
script: "scripts/build_elxr12_immutable.sh"
35+
- distribution: "ubuntu24"
36+
image_type: "raw"
37+
script: "scripts/build_ubuntu24_raw.sh"
38+
- distribution: "ubuntu24"
39+
image_type: "iso"
40+
script: "scripts/build_ubuntu24_iso.sh"
41+
- distribution: "ubuntu24"
42+
image_type: "immutable"
43+
script: "scripts/build_ubuntu24_immutable.sh"
44+
- distribution: "azl3"
45+
image_type: "raw"
46+
script: "scripts/build_azl3_raw.sh"
47+
- distribution: "azl3"
48+
image_type: "iso"
49+
script: "scripts/build_azl3_iso.sh"
50+
- distribution: "azl3"
51+
image_type: "immutable"
52+
script: "scripts/build_azl3_immutable.sh"
53+
fail-fast: false # Continue testing other images even if one fails
1454
steps:
1555
- name: Checkout code
1656
uses: actions/checkout@v4
@@ -36,19 +76,19 @@ jobs:
3676
with:
3777
go-version: stable # or a pinned version you know exists
3878

39-
- name: Copy tester script
79+
- name: Prepare build script
4080
run: |
41-
if [ ! -f validate.sh ]; then
42-
echo "validate.sh not found!"
81+
if [ ! -f "${{ matrix.script }}" ]; then
82+
echo "${{ matrix.script }} not found!"
4383
exit 1
4484
fi
45-
chmod +x validate.sh
85+
chmod +x "${{ matrix.script }}"
4686
47-
- name: Run build-tester
87+
- name: Run ${{ matrix.distribution }} ${{ matrix.image_type }} boot test
4888
run: |
49-
echo "Starting validate.sh..."
89+
echo "Starting ${{ matrix.distribution }} ${{ matrix.image_type }} image build and boot test..."
5090
# Ensure script has access to docker group for Earthly
5191
sudo usermod -aG docker $USER
52-
# Run the validation script
53-
./validate.sh --qemu-test
54-
echo "Build and tests completed."
92+
# Run the specific build script with QEMU test
93+
./${{ matrix.script }} --qemu-test
94+
echo "${{ matrix.distribution }} ${{ matrix.image_type }} build and boot test completed."

0 commit comments

Comments
 (0)