diff options
author | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:08:38 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:13:53 +0100 |
commit | b4e2f1725e0afacb4578c0b8caa9a895a3adf88b (patch) | |
tree | 108702788bc7299af374b3dc10822a65717a84a6 /build/.github/workflows/main.yml | |
parent | ad29e6cf8dacff144804ab1fb04b096b0d04d4d7 (diff) | |
download | gusb-b4e2f1725e0afacb4578c0b8caa9a895a3adf88b.tar.gz |
Move the CI to GitHub actions
Diffstat (limited to 'build/.github/workflows/main.yml')
-rw-r--r-- | build/.github/workflows/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
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 |