summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-02-05 16:00:15 -0500
committerPeter Jones <pjones@redhat.com>2021-02-05 16:30:57 -0500
commit2b53e3d35602fd2bbb8f6162187f6ec5073cae8c (patch)
treea20df4427b246d2bdc3ff1b2e0bfa48c01d0d2e4
parentedc08062f1bea137ab5f2efae6c0b7d0ddaecd57 (diff)
downloadefi-boot-shim-2b53e3d35602fd2bbb8f6162187f6ec5073cae8c.tar.gz
efi-boot-shim-2b53e3d35602fd2bbb8f6162187f6ec5073cae8c.zip
github workflows: Unify the x86 pull request build rules steps
This makes each of the f32/f33/f34 distro builds use the same steps to do the build, as well as making each of them build both x64 and ia32 targets. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--.github/workflows/pullrequest.yml130
1 files changed, 44 insertions, 86 deletions
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index 46cd50de..635c7f0b 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -6,88 +6,45 @@ on:
- main
jobs:
- pull-request-f34-x64:
+ pull-request-intel:
runs-on: ubuntu-20.04
- container: vathpela/efi-ci:f34
- name: f34 build
- 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: fetch-origin
- run: git fetch origin
- id: fetch-origin
- - name: dammit0
- run: git remote -v
- id: dammit0
- - name: dammit1
- run: ls .git/refs/heads/
- id: dammit1
- - name: Do the build
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all
- id: build
- - name: Install in /destdir
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true install
- id: install
-# - name: Archive production artifacts
-# uses: actions/upload-artifact@v2
-# with:
-# name: shim
-# path: |
-# /destdir
- pull-request-f33-x64:
- runs-on: ubuntu-20.04
- container: vathpela/efi-ci:f33
- name: f33 build
- 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
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all
- id: build
- - name: Install in /destdir
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true install
- id: install
-# - name: Archive production artifacts
-# uses: actions/upload-artifact@v2
-# with:
-# name: shim
-# path: |
-# /destdir
- pull-request-f32-x64:
- runs-on: ubuntu-20.04
- container: vathpela/efi-ci:f32
- name: f32 build
- 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
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all
- id: build
- - name: Install in /destdir
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true install
- id: install
-# - name: Archive production artifacts
-# uses: actions/upload-artifact@v2
-# with:
-# name: shim
-# path: |
-# /destdir
- pull-request-f31-x64:
- runs-on: ubuntu-20.04
- container: vathpela/efi-ci:f31
- name: f31 build
+ 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
@@ -95,12 +52,13 @@ jobs:
# 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
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all
+ - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: build
- - name: Install in /destdir
- run: make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true install
- id: install
+ run: |
+ make -s ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all
+ make -s ARCH=${{ matrix.makearch }} PREFIX=/usr LIBDIR=${{ matrix.libdir }} DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true install
+ echo 'results:'
+ find /destdir -type f
# - name: Archive production artifacts
# uses: actions/upload-artifact@v2
# with: