From b4e2f1725e0afacb4578c0b8caa9a895a3adf88b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 21 May 2021 10:08:38 +0100 Subject: Move the CI to GitHub actions --- .travis.yml | 14 -------------- build/.github/workflows/main.yml | 19 +++++++++++++++++++ contrib/ci/Dockerfile-fedora | 2 +- 3 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 .travis.yml create mode 100644 build/.github/workflows/main.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 36044cb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: c -sudo: required -dist: trusty - -services: - - docker - -before_script: - - docker build -t gusb-fedora -f contrib/ci/Dockerfile-fedora . -# - docker build -t gusb-debian-stretch -f contrib/ci/Dockerfile-debian-stretch . - -script: - - docker run -t -v `pwd`:/build gusb-fedora ./contrib/ci/build_and_test.sh -Dtests=false -# - docker run -t -v `pwd`:/build gusb-debian-stretch ./contrib/ci/build_and_test.sh -Dtests=false diff --git a/build/.github/workflows/main.yml b/build/.github/workflows/main.yml new file mode 100644 index 0000000..1cd1f88 --- /dev/null +++ b/build/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + build_and_test: + runs-on: ubuntu-latest + + strategy: + matrix: + distro: + - fedora + - debian-stretch + fail-fast: false + + steps: + - uses: actions/checkout@v2 + - run: docker build -t libgusb-${{ matrix.distro }} -f contrib/ci/Dockerfile-${{ matrix.distro }} . + - run: docker run -t -v `pwd`:/build libgusb-${{ matrix.distro }} ./contrib/ci/build_and_test.sh -Dtests=false diff --git a/contrib/ci/Dockerfile-fedora b/contrib/ci/Dockerfile-fedora index f96e000..993b285 100644 --- a/contrib/ci/Dockerfile-fedora +++ b/contrib/ci/Dockerfile-fedora @@ -1,4 +1,4 @@ -FROM fedora:31 +FROM fedora:34 RUN dnf -y update RUN dnf -y install \ -- cgit v1.2.1