diff options
| author | Peter Jones <pjones@redhat.com> | 2024-12-17 11:14:32 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2024-12-17 13:35:41 -0500 |
| commit | fd7e16f7d0f7edf3f79db7323ed449e9ed053e36 (patch) | |
| tree | 5b7cace72d735c895cf08f276c0ea8c6f45dffd3 | |
| parent | 0c9249d13bced071986ada03846e2241143a1ad4 (diff) | |
| download | efi-boot-shim-fd7e16f7d0f7edf3f79db7323ed449e9ed053e36.tar.gz efi-boot-shim-fd7e16f7d0f7edf3f79db7323ed449e9ed053e36.zip | |
Add building compile_commands.json to CI
I use compile_commands.json with vim all the time, so it's better if it
doesn't break.
This adds it to CI builds to try to ensure that better.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | .github/workflows/pullrequest.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index dfae6506..6027d4d0 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -182,3 +182,41 @@ jobs: make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install echo 'results:' find /destdir -type f + + build-pull-request-intel-compile-commands-json: + runs-on: ubuntu-20.04 + container: vathpela/efi-ci:${{ matrix.distro }}-x64 + name: ${{ matrix.distro }} ${{ matrix.efiarch }} build compile_commands.json + + strategy: + matrix: + include: + - arch: amd64 + efiarch: x64 + makearch: x86_64 + distro: f41 + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger) + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + submodules: recursive + - name: Work around directory ownership issue + id: ignore-ownership + run: | + git config --global --add safe.directory /__w/shim/shim + - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }} + id: update-submodules + run: | + make update + - name: Do 'make clean' on ${{ matrix.distro }} for ${{ matrix.efiarch }} + id: clean + run: | + make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean + - name: Build compile_commands.json on ${{ matrix.distro }} for ${{ matrix.efiarch }} + id: compile_commands + run: | + make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true compile_commands.json |
