File tree 2 files changed +14
-4
lines changed 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,17 @@ jobs:
66
66
run : |
67
67
cp build/coreboot.rom build/coreboot_serial_enabled.rom
68
68
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
69
74
- name : Save artifacts
70
75
uses : actions/upload-artifact@v2
71
76
with :
72
77
name : " dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }}"
73
78
path : |
74
- build/coreboot.rom
75
- build/coreboot_serial_enabled.rom
79
+ build/coreboot_*.rom
76
80
retention-days : 30
77
81
build_protectli :
78
82
environment : Protectli
@@ -144,11 +148,17 @@ jobs:
144
148
145
149
- name : Flash firmware
146
150
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
148
158
149
159
- name : Run tests
150
160
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
152
162
153
163
- name : Upload test results
154
164
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments