From: Michael R Sweet Date: Mon, 1 Feb 2021 20:56:18 +0000 (-0500) Subject: Add Github Action to build and test X-Git-Tag: v2.3.3op2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ace0bace4845fff5d5e4c735f7e837f5103fba5;p=thirdparty%2Fcups.git Add Github Action to build and test --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..b0e13bd5cd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build and Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-linux: + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + - name: install prerequisites + run: sudo apt-get install -y avahi-daemon libavahi-client-dev libgnutls28-dev libpam-dev libusb-1.0-0-dev zlib1g-dev + - name: configure + env: + CC: /usr/bin/gcc + run: ./configure --enable-debug --enable-maintainer --enable-sanitizer + - name: make + run: make + - name: test + env: + ASAN_OPTIONS: leak_check_at_exit=false + run: make test + + build-macos: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: configure + run: ./configure --enable-debug --enable-maintainer --enable-sanitizer + - name: make + run: make + - name: test + run: make test