aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci_meson.yml
blob: 2f6ec473ea18c4d32ee02903ec9856f602dc4c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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