diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2021-10-09 12:37:05 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-10-09 14:14:41 -0500 |
commit | 2b55ac719afc797c3c774960475cdf273363cfae (patch) | |
tree | c0ebe63fd5b27664d85cb444e3481c2ea336f072 /.github/workflows | |
parent | c45e3361eec80b48ecc457fc8f060ee606bca4f2 (diff) |
separate github actions based on OS
This fixes #466.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci-alpine-linux.yml | 26 | ||||
-rw-r--r-- | .github/workflows/ci-ubuntu.yml | 32 | ||||
-rw-r--r-- | .github/workflows/ci_meson.yml | 55 |
3 files changed, 58 insertions, 55 deletions
diff --git a/.github/workflows/ci-alpine-linux.yml b/.github/workflows/ci-alpine-linux.yml new file mode 100644 index 00000000..f5f2faed --- /dev/null +++ b/.github/workflows/ci-alpine-linux.yml @@ -0,0 +1,26 @@ +name: ci_alpine_linux + +on: [push, pull_request] + +jobs: + + gcc-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 diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml new file mode 100644 index 00000000..5e1860cf --- /dev/null +++ b/.github/workflows/ci-ubuntu.yml @@ -0,0 +1,32 @@ +name: ci_ubuntu + +on: [push, pull_request] + +jobs: + + gcc-glibc: + 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 + + + clang-glibc: + 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 diff --git a/.github/workflows/ci_meson.yml b/.github/workflows/ci_meson.yml deleted file mode 100644 index 2f6ec473..00000000 --- a/.github/workflows/ci_meson.yml +++ /dev/null @@ -1,55 +0,0 @@ -# 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 |