12 cross-build-pull-request:
14 container: vathpela/efi-ci:${{ matrix.distro }}-x64
15 name: ${{ matrix.distro }} ${{ matrix.efiarch }} cross-build
103 uses: actions/checkout@v2
105 # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
106 ref: ${{ github.event.pull_request.head.sha }}
108 submodules: recursive
109 - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
110 id: update-submodules
113 - name: Make a build directory for ${{ matrix.distro }} for ${{ matrix.efiarch }}
116 rm -rf build-${{ matrix.distro }}-${{ matrix.efiarch }}
117 mkdir build-${{ matrix.distro }}-${{ matrix.efiarch }}
118 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
119 - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
123 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
124 make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
125 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
129 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
130 make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
132 find /destdir -type f
134 build-pull-request-intel:
135 runs-on: ubuntu-20.04
136 container: vathpela/efi-ci:${{ matrix.distro }}-x64
137 name: ${{ matrix.distro }} ${{ matrix.efiarch }} build
193 uses: actions/checkout@v2
195 # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
196 ref: ${{ github.event.pull_request.head.sha }}
198 submodules: recursive
199 - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
200 id: update-submodules
203 - name: Do 'make clean' on ${{ matrix.distro }} for ${{ matrix.efiarch }}
206 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean
207 - name: Run tests on ${{ matrix.distro }} for ${{ matrix.efiarch }}
210 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test
211 - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
214 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
215 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
218 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
220 find /destdir -type f