summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2020-12-03 13:16:34 -0500
committerPeter Jones <pmjones@gmail.com>2020-12-07 15:09:09 -0500
commit5fd3316bb469b583e235d737de664b884d7b6cf8 (patch)
tree044d041fe09917d028c251747b82163f845673b7 /.github
parent5ec906ac6ce4596664a6a7f1626895ebca9cd65e (diff)
downloadefi-boot-shim-5fd3316bb469b583e235d737de664b884d7b6cf8.tar.gz
efi-boot-shim-5fd3316bb469b583e235d737de664b884d7b6cf8.zip
Use github actions for CI builds
This could still use a bit of work, but it's better than Travis failing... Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml145
1 files changed, 145 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..8a26d2e0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,145 @@
+name: Build for CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+ schedule:
+ - cron: '0 3 * * *'
+
+jobs:
+ build-f31-x64:
+ runs-on: ubuntu-20.04
+ container: vathpela/efi-ci:f31
+ name: A job to test building on Fedora 31
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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
+ build-f32-x64:
+ runs-on: ubuntu-20.04
+ container: vathpela/efi-ci:f32
+ name: A job to test building on Fedora 32
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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
+ build-f33-x64:
+ runs-on: ubuntu-20.04
+ container: vathpela/efi-ci:f33
+ name: A job to test building on Fedora 33
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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
+ build-f34-x64:
+ runs-on: ubuntu-20.04
+ container: vathpela/efi-ci:f34
+ name: A job to test building on Fedora 34
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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