aboutsummaryrefslogtreecommitdiff
path: root/dependencies/uthash/.github/workflows/build.yml
blob: 3438b0797d6f97b12f611d7b36fcff59ddb8b7ef (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
name: build # This name shows up in badge.svg

on:
  push: # any branch
  pull_request:
    branches: [ "master" ]

jobs:
  build-gcc:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - run: make -C tests EXTRA_CFLAGS="-W -Wall -Wextra -Wswitch-default"
    - run: make -C tests clean ; make -C tests pedantic
    - run: make -C tests clean ; make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
    - run: make -C tests clean ; make -C tests cplusplus
    - run: make -C tests clean ; make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE
  build-clang:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    env:
      CC: clang
      CXX: clang++
    steps:
    - uses: actions/checkout@v3
    - run: make -C tests EXTRA_CFLAGS="-W -Wall -Wextra -Wswitch-default"
    - run: make -C tests clean ; make -C tests pedantic
    - run: make -C tests clean ; make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
    - run: make -C tests clean ; make -C tests cplusplus
    - run: make -C tests clean ; make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE
  build-asciidoc:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - run: sudo apt-get update && sudo apt-get install asciidoc -y
    - run: make -C doc