diff options
author | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:20:15 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:26:01 +0100 |
commit | bd48181005ef3bc6611c801b1be70609d8d69965 (patch) | |
tree | 70d885dd533874349130670b3ec6b0f3959af4d9 /.github/workflows | |
parent | b4e2f1725e0afacb4578c0b8caa9a895a3adf88b (diff) | |
download | gusb-bd48181005ef3bc6611c801b1be70609d8d69965.tar.gz |
Only run CI build on master
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/main.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..76f8995 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Build and Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 |