diff options
| -rw-r--r-- | .github/workflows/main.yml | 145 | ||||
| -rw-r--r-- | .travis.yml | 23 |
2 files changed, 145 insertions, 23 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 534bd1ed..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: c -cache: ccache -branches: - except: - - travis - -matrix: - include: - - os: linux - dist: trusty - services: docker - -before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull vathpela/shim-travis-rawhide:v2 ; fi - -before_script: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo FROM vathpela/shim-travis-rawhide:v2 > Dockerfile ; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo ADD . /root >> Dockerfile ; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t withgit . ; fi - -script: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --volume $HOME/.ccache:/root/.ccache withgit /bin/sh -c "cd /root/shim && git pull && git reset origin/master --hard && ./travis-build.sh --branch $TRAVIS_BRANCH --repo \"$TRAVIS_REPO_SLUG\" --remote \"$TRAVIS_PULL_REQUEST_SLUG\" --pr-sha \"$TRAVIS_PULL_REQUEST_SHA\"" ; fi - - ccache -s |
