aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci-ubuntu.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci-ubuntu.yml')
-rw-r--r--.github/workflows/ci-ubuntu.yml36
1 files changed, 11 insertions, 25 deletions
diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml
index 1be9f0c5..ceb36cef 100644
--- a/.github/workflows/ci-ubuntu.yml
+++ b/.github/workflows/ci-ubuntu.yml
@@ -4,35 +4,21 @@ on: [push, pull_request]
jobs:
- gcc-glibc:
+ ubuntu:
+ name: Ubuntu
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ compiler:
+ - gcc
+ - clang
+ env:
+ CC: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update -q
- - run: sudo apt-get install -q -y build-essential libpam-dev meson libcap-dev
+ - run: sudo apt-get install -q -y build-essential libpam-dev meson libcap-dev ${CC}
- run: meson setup builddir/
- env:
- CC: gcc
- run: ninja -C builddir
- env:
- CC: gcc
- run: ninja test --verbose -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 libcap-dev
- - run: meson setup builddir/
- env:
- CC: clang
- - run: ninja -C builddir
- env:
- CC: clang
- - run: ninja test --verbose -C builddir
- env:
- CC: clang