|
5 | 5 | - dasharo |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build_novacustom: |
9 | | - runs-on: ubuntu-22.04 |
10 | | - container: |
11 | | - image: coreboot/coreboot-sdk:2021-09-23_b0d87f753c |
12 | | - options: --user 1001 |
13 | | - strategy: |
14 | | - matrix: |
15 | | - vendor: [ novacustom ] |
16 | | - model: [ nv4x_adl, ns5x_adl, nv4x_tgl, ns5x_tgl ] |
17 | | - steps: |
18 | | - - name: Checkout repository |
19 | | - uses: actions/checkout@v3 |
20 | | - with: |
21 | | - # Checkout pull request HEAD commit instead of merge commit |
22 | | - # See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit |
23 | | - ref: ${{ github.event.pull_request.head.sha }} |
24 | | - # Fetch complete history |
25 | | - fetch-depth: 0 |
26 | | - - name: Checkout all submodules |
27 | | - run: git submodule update --init --recursive --checkout |
28 | | - - name: Build Dasharo |
29 | | - run: | |
30 | | - cp configs/config.${{ matrix.vendor }}_${{ matrix.model }} .config |
31 | | - make olddefconfig |
32 | | - make |
33 | | - - name: Save artifacts |
34 | | - uses: actions/upload-artifact@v2 |
35 | | - with: |
36 | | - name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }}" |
37 | | - path: | |
38 | | - build/coreboot.rom |
39 | | - retention-days: 30 |
| 8 | +# build_novacustom: |
| 9 | +# runs-on: ubuntu-22.04 |
| 10 | +# container: |
| 11 | +# image: coreboot/coreboot-sdk:2021-09-23_b0d87f753c |
| 12 | +# options: --user 1001 |
| 13 | +# strategy: |
| 14 | +# matrix: |
| 15 | +# vendor: [ novacustom ] |
| 16 | +# model: [ nv4x_adl, ns5x_adl, nv4x_tgl, ns5x_tgl ] |
| 17 | +# steps: |
| 18 | +# - name: Checkout repository |
| 19 | +# uses: actions/checkout@v3 |
| 20 | +# with: |
| 21 | +# # Checkout pull request HEAD commit instead of merge commit |
| 22 | +# # See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit |
| 23 | +# ref: ${{ github.event.pull_request.head.sha }} |
| 24 | +# # Fetch complete history |
| 25 | +# fetch-depth: 0 |
| 26 | +# - name: Checkout all submodules |
| 27 | +# run: git submodule update --init --recursive --checkout |
| 28 | +# - name: Build Dasharo |
| 29 | +# run: | |
| 30 | +# cp configs/config.${{ matrix.vendor }}_${{ matrix.model }} .config |
| 31 | +# make olddefconfig |
| 32 | +# make |
| 33 | +# - name: Save artifacts |
| 34 | +# uses: actions/upload-artifact@v2 |
| 35 | +# with: |
| 36 | +# name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }}" |
| 37 | +# path: | |
| 38 | +# build/coreboot.rom |
| 39 | +# retention-days: 30 |
40 | 40 | build_msi: |
41 | 41 | runs-on: ubuntu-22.04 |
42 | 42 | container: |
@@ -69,34 +69,83 @@ jobs: |
69 | 69 | path: | |
70 | 70 | build/coreboot.rom |
71 | 71 | retention-days: 30 |
72 | | - build_protectli: |
73 | | - environment: Protectli |
74 | | - runs-on: ubuntu-22.04 |
| 72 | +# build_protectli: |
| 73 | +# environment: Protectli |
| 74 | +# runs-on: ubuntu-22.04 |
| 75 | +# strategy: |
| 76 | +# matrix: |
| 77 | +# vendor: [ protectli ] |
| 78 | +# model: [ vp46xx ] |
| 79 | +# steps: |
| 80 | +# - name: Checkout repository |
| 81 | +# uses: actions/checkout@v3 |
| 82 | +# with: |
| 83 | +# # Checkout pull request HEAD commit instead of merge commit |
| 84 | +# # See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit |
| 85 | +# ref: ${{ github.event.pull_request.head.sha }} |
| 86 | +# # Fetch complete history |
| 87 | +# fetch-depth: 0 |
| 88 | +# - name: Checkout all submodules |
| 89 | +# run: git submodule update --init --recursive --checkout |
| 90 | +# - name: Obtain Blobs |
| 91 | +# shell: bash |
| 92 | +# env: |
| 93 | +# SSH_KEY: ${{secrets.PROTECTLI_BLOBS_KEY}} |
| 94 | +# BLOB_REPO: ${{secrets.PROTECTLI_BLOBS_REPO}} |
| 95 | +# run: | |
| 96 | +# eval `ssh-agent -s` |
| 97 | +# echo "${SSH_KEY}" | ssh-add - |
| 98 | +# git clone $BLOB_REPO |
| 99 | +# cp -r protectli-blobs/protectli/ 3rdparty/blobs/mainboard/ |
| 100 | +# - name: Build Dasharo |
| 101 | +# run: | |
| 102 | +# ./build.sh ${{ matrix.model }} |
| 103 | + test_msi: |
| 104 | + runs-on: self-hosted |
75 | 105 | strategy: |
76 | 106 | matrix: |
77 | | - vendor: [ protectli ] |
78 | | - model: [ vp46xx ] |
| 107 | + vendor: [ msi ] |
| 108 | + model: [ ms7d25_ddr5 ] |
| 109 | + needs: [build_msi] |
79 | 110 | steps: |
80 | | - - name: Checkout repository |
81 | | - uses: actions/checkout@v3 |
| 111 | + - name: Set up Python |
| 112 | + uses: actions/setup-python@v2 |
82 | 113 | with: |
83 | | - # Checkout pull request HEAD commit instead of merge commit |
84 | | - # See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit |
85 | | - ref: ${{ github.event.pull_request.head.sha }} |
86 | | - # Fetch complete history |
87 | | - fetch-depth: 0 |
88 | | - - name: Checkout all submodules |
89 | | - run: git submodule update --init --recursive --checkout |
90 | | - - name: Obtain Blobs |
91 | | - shell: bash |
92 | | - env: |
93 | | - SSH_KEY: ${{secrets.PROTECTLI_BLOBS_KEY}} |
94 | | - BLOB_REPO: ${{secrets.PROTECTLI_BLOBS_REPO}} |
95 | | - run: | |
96 | | - eval `ssh-agent -s` |
97 | | - echo "${SSH_KEY}" | ssh-add - |
98 | | - git clone $BLOB_REPO |
99 | | - cp -r protectli-blobs/protectli/ 3rdparty/blobs/mainboard/ |
100 | | - - name: Build Dasharo |
| 114 | + python-version: '3.11' |
| 115 | + |
| 116 | + - name: Fetch CI script |
| 117 | + uses: actions/checkout@v4 |
| 118 | + with: |
| 119 | + sparse-checkout: ci.sh |
| 120 | + sparse-checkout-cone-mode: false |
| 121 | + |
| 122 | + - name: Checkout test repository |
| 123 | + uses: actions/checkout@v4 |
| 124 | + with: |
| 125 | + repository: Dasharo/open-source-firmware-validation |
| 126 | + path: validation |
| 127 | + |
| 128 | + - name: Install dependencies |
101 | 129 | run: | |
102 | | - ./build.sh ${{ matrix.model }} |
| 130 | + python -m pip install --upgrade pip |
| 131 | + pip install -r validation/requirements.txt |
| 132 | +
|
| 133 | + - name: Fetch latest firmware |
| 134 | + uses: actions/download-artifact@v3 |
| 135 | + with: |
| 136 | + name: dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.build }} |
| 137 | + path: dasharo.rom |
| 138 | + |
| 139 | + - name: Flash firmware |
| 140 | + shell: bash |
| 141 | + run: ./ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f dasharo.rom flash |
| 142 | + |
| 143 | + - name: Run tests |
| 144 | + shell: bash |
| 145 | + run: ./ci.sh -r validation -v "${{ matrix.vendor }}" -m "${{ matrix.model }}" -f dasharo.rom test |
| 146 | + |
| 147 | + - name: Upload test results |
| 148 | + uses: actions/upload-artifact@v3 |
| 149 | + with: |
| 150 | + name: test-results |
| 151 | + path: test-results |
0 commit comments