summaryrefslogtreecommitdiff
path: root/.github/workflows/pullrequest.yml
blob: 4f99dbb29f5f885d0567c525c54c647418b37b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: pull-request-builds

on:
  pull_request:
    branches:
      - main
      - sbat

jobs:
  pull-request-intel:
    runs-on: ubuntu-20.04
    container: vathpela/efi-ci:f34-x64
    name: ${{ matrix.distro }} ${{ matrix.efiarch }} build

    strategy:
      matrix:
        include:
          - arch: amd64
            efiarch: x64
            makearch: x86_64
            distro: efi-ci-f34
            libdir: /usr/lib64
          - arch: amd64
            efiarch: x64
            makearch: x86_64
            distro: efi-ci-f33
            libdir: /usr/lib64
          - arch: amd64
            efiarch: x64
            makearch: x86_64
            distro: efi-ci-f32
            libdir: /usr/lib64
          - arch: amd64
            efiarch: ia32
            makearch: ia32
            distro: efi-ci-f34
            libdir: /usr/lib
          - arch: amd64
            efiarch: ia32
            makearch: ia32
            distro: efi-ci-f33
            libdir: /usr/lib
          - arch: amd64
            efiarch: ia32
            makearch: ia32
            distro: efi-ci-f32
            libdir: /usr/lib

    steps:
      - name: Checkout
        uses: actions/checkout@v2
        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
      - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
        id: build
        run: |
          make update || :
          make -s ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test || make ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test 
          make -s ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean all || make ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
          make -s ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install || make ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
          echo 'results:'
          find /destdir -type f