From 636cba95b5cfbebfb4fa04e51cab1c08f2434572 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 10 Dec 2020 15:10:11 -0500 Subject: Split up push and PR CI/CD and build all patches in series on PRs Signed-off-by: Peter Jones --- .github/workflows/pull-request.yml | 83 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/pull-request.yml (limited to '.github/workflows/pull-request.yml') diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..6008a27d --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,83 @@ +name: pull-request-builds + +on: + pull_request: + branches: + - main + +jobs: + pull-request-f34-x64: + runs-on: ubuntu-20.04 + container: vathpela/efi-ci:f34 + name: f34 build + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Do the build + run: git rebase --exec "make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all" "${GITHUB_BASE_REF}" + 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 + - name: Do the build + run: git rebase --exec "make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all" "${GITHUB_BASE_REF}" + 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 + - name: Do the build + run: git rebase --exec "make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all" "${GITHUB_BASE_REF}" + 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 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Do the build + run: git rebase --exec "make PREFIX=/usr LIBDIR=/usr/lib64 DESTDIR=/destdir EFIDIR=test ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true clean all" "${GITHUB_BASE_REF}" + id: build + - name: Install in /destdir + id: install +# - name: Archive production artifacts +# uses: actions/upload-artifact@v2 +# with: +# name: shim +# path: | +# /destdir -- cgit v1.2.3