aboutsummaryrefslogtreecommitdiff
blob: 5c95baa19a53aab4965161e54bc49cf52ed652e1 (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
# GitHub actions workflow.
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions

name: Build+Test CI

on: [pull_request, push]

jobs:
  glibc:
    strategy:
      matrix:
        cc: [gcc, clang]
      fail-fast: false
    runs-on: ubuntu-latest
    env:
      CC: ${{ matrix.cc }}
    steps:
    - name: Install dependencies
      run: |
        sudo apt-get update -qq
        sudo apt-get install build-essential gcc clang automake autoconf autoconf-archive libtool pax-utils -qy

    - uses: actions/checkout@v3
      name: Checkout

    - name: Build
      run: |
        ./autogen.sh
        ./configure || { cat config.log; false; }
        make V=1
        make V=1 check || { cat tests/testsuite.log; false; }
        make V=1 distcheck

  musl:
    runs-on: ubuntu-latest
    container:
      image: alpine:latest
      options: --cap-add=SYS_PTRACE
    steps:
      - name: Install dependencies
        run: apk add bash coreutils build-base automake autoconf autoconf-archive libtool pax-utils gawk sed

      - name: Checkout
        uses: actions/checkout@v3

      - name: Build
        run: |
          ./autogen.sh
          ./configure || { cat config.log; false; }
          make V=1
          make V=1 check || { cat tests/testsuite.log; false; }