summaryrefslogtreecommitdiff
path: root/.github/workflows/cmake-version.yml
blob: 24d87ba3bec938a719217bddfdb21b5993fd764a (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
56
57
58
59
60
61
62
63
64
65
66
on: [workflow_dispatch]
name: cmake-version

jobs:
  build:
    continue-on-error: true
    name: ubuntu:production-dbg
    runs-on: ubuntu-latest
    strategy:
      matrix:
        cmake_version: [
          "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15", "3.16",
          "3.17", "3.18", "3.19", "3.20", "3.21"
        ]

    steps:
    - name: Setup cmake
      uses: jwlawson/actions-setup-cmake@v1.9
      with:
        cmake-version: ${{ matrix.cmake_version }}

    - uses: actions/checkout@v2

    - name: Adapt cmake version checks
      run: |
        sed -i'orig' -E 's/cmake_minimum_required\(VERSION [0-9.]+\)/cmake_minimum_required(VERSION ${{ matrix.cmake_version }})/' CMakeLists.txt

    - name: Install dependencies
      uses: ./.github/actions/install-dependencies
      with:
        with-documentation: true
        with-python-bindings: true
  
    - name: Setup caches
      uses: ./.github/actions/setup-cache
      with:
        cache-key: cmake
  
    - name: Configure
      run: |
        ./configure.sh production --auto-download --static --python-bindings --assertions --tracing --unit-testing --editline --docs \
          --prefix=$(pwd)/build/install \
          --werror

    - name: Build
      run: make -j${{ env.num_proc }}
      working-directory: build

    - name: ccache Statistics
      run: ccache -s

    - name: Run tests
      uses: ./.github/actions/run-tests
      with:
        check-examples: true
        check-python-bindings: true
        check-unit-tests: true

    - name: Build Documentation
      run: |
        make -j${{ env.num_proc }} docs-gh
        if [ "${{ github.event_name }}" == "pull_request" ] ; then
          echo "${{ github.event.number }}" > docs/sphinx-gh/prnum
        fi
      working-directory: build
    
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback