diff options
author | Sam James <sam@gentoo.org> | 2021-10-08 19:28:09 +0100 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-10-08 23:15:14 -0500 |
commit | c45e3361eec80b48ecc457fc8f060ee606bca4f2 (patch) | |
tree | 152ec9145be390128bbee580bcae48c20d6b7c35 | |
parent | 785726d67d70e5c3defaee7952088d3d09adbd76 (diff) |
add github action to build on several linux platforms
This github action runs a build on each of the following platforms on a
push or pull request.
- Ubuntu LTS with gcc and glibc
- Ubuntu LTS with clang and glibc
- Alpine with gcc and musl
This fixes #463.
-rw-r--r-- | .github/workflows/ci_meson.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/ci_meson.yml b/.github/workflows/ci_meson.yml new file mode 100644 index 00000000..2f6ec473 --- /dev/null +++ b/.github/workflows/ci_meson.yml @@ -0,0 +1,55 @@ +# Nabbed from https://github.com/mesonbuild/meson/blob/master/docs/markdown/Continuous-Integration.md#github-actions +name: ci_meson + +on: [push, pull_request] + +jobs: + + linux-gcc-glibc-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get update -q + - run: sudo apt-get install -q -y build-essential libpam-dev meson + - run: meson setup builddir/ + env: + CC: gcc + - run: ninja -C builddir + env: + CC: gcc + + + linux-clang-glibc-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get update -q + - run: sudo apt-get install -q -y build-essential clang libpam-dev meson + - run: meson setup builddir/ + env: + CC: clang + - run: ninja -C builddir + env: + CC: clang + + + linux-gcc-alpine-musl: + runs-on: ubuntu-latest + container: alpine:latest + steps: + - name: install deps + run: >- + apk --no-cache add \ + build-base \ + meson \ + pkgconf \ + linux-pam \ + linux-pam-dev + - name: checkout + uses: actions/checkout@v2 + - run: meson setup builddir/ + env: + CC: gcc + - run: ninja -C builddir + env: + CC: gcc |