Skip to content

Commit d865ca4

Browse files
committed
Use pretrained firmware for tests on MSI Z690 DDR5
1 parent 9e00195 commit d865ca4

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,17 @@ jobs:
6666
run: |
6767
cp build/coreboot.rom build/coreboot_serial_enabled.rom
6868
build/util/cbfstool/cbfstool build/coreboot_serial_enabled.rom write -r SMMSTORE -f ci/smmstore-serial-enabled
69+
70+
if [ -e "ci/${{ matrix.vendor }}_${{ matrix.model }}_pretrained" ]; then
71+
cp build/coreboot.rom build/coreboot_serial_enabled_pretrained.rom
72+
build/util/cbfstool/cbfstool build/coreboot_serial_enabled_pretrained.rom write -r RW_MRC_CACHE -f ci/${{ matrix.vendor }}_${{ matrix.model }}_pretrained
73+
fi
6974
- name: Save artifacts
7075
uses: actions/upload-artifact@v2
7176
with:
7277
name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }}"
7378
path: |
74-
build/coreboot.rom
75-
build/coreboot_serial_enabled.rom
79+
build/coreboot_*.rom
7680
retention-days: 30
7781
build_protectli:
7882
environment: Protectli
@@ -144,11 +148,17 @@ jobs:
144148

145149
- name: Flash firmware
146150
shell: bash
147-
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f firmware/coreboot_serial_enabled.rom flash
151+
run: |
152+
if [ -e firmware/coreboot_serial_enabled_pretrained.rom ]; then
153+
fw_file="firmware/coreboot_serial_enabled_pretrained.rom"
154+
else
155+
fw_file="firmware/coreboot_serial_enabled.rom"
156+
fi
157+
./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f "$fw_file" flash
148158
149159
- name: Run tests
150160
shell: bash
151-
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f firmware/coreboot_serial_enabled.rom test
161+
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" test
152162

153163
- name: Upload test results
154164
uses: actions/upload-artifact@v3

ci/msi_ms7d25_ddr5_pretrained

128 KB
Binary file not shown.

0 commit comments

Comments
 (0)