Skip to content

Commit

Permalink
Use pretrained firmware for tests on MSI Z690 DDR5
Browse files Browse the repository at this point in the history
  • Loading branch information
arturkow2000 committed Nov 15, 2023
1 parent 9e00195 commit 2751030
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ jobs:
run: |
cp build/coreboot.rom build/coreboot_serial_enabled.rom
build/util/cbfstool/cbfstool build/coreboot_serial_enabled.rom write -r SMMSTORE -f ci/smmstore-serial-enabled
if [ -e "ci/${{ matrix.vendor }}_${{ matrix.model }}_pretrained" ]; then
cp build/coreboot_serial_enabled.rom build/coreboot_serial_enabled_pretrained.rom
build/util/cbfstool/cbfstool build/coreboot_serial_enabled_pretrained.rom write -r RW_MRC_CACHE -f ci/${{ matrix.vendor }}_${{ matrix.model }}_pretrained
fi
- name: Save artifacts
uses: actions/upload-artifact@v2
with:
name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }}"
path: |
build/coreboot.rom
build/coreboot_serial_enabled.rom
build/coreboot_*.rom
retention-days: 30
build_protectli:
environment: Protectli
Expand Down Expand Up @@ -144,11 +148,17 @@ jobs:

- name: Flash firmware
shell: bash
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f firmware/coreboot_serial_enabled.rom flash
run: |
if [ -e firmware/coreboot_serial_enabled_pretrained.rom ]; then
fw_file="firmware/coreboot_serial_enabled_pretrained.rom"
else
fw_file="firmware/coreboot_serial_enabled.rom"
fi
./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f "$fw_file" flash
- name: Run tests
shell: bash
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f firmware/coreboot_serial_enabled.rom test
run: ./ci/ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" test

- name: Upload test results
uses: actions/upload-artifact@v3
Expand Down
Binary file added ci/msi_ms7d25_ddr5_pretrained
Binary file not shown.

0 comments on commit 2751030

Please sign in to comment.