File: ci.yml

package info (click to toggle)
p4est 2.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,536 kB
  • sloc: ansic: 87,528; makefile: 855; sh: 635; perl: 272; python: 226; awk: 40; javascript: 23
file content (144 lines) | stat: -rw-r--r-- 4,585 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: CI for Autotools

on: [push, pull_request]

jobs:

  linux-multi:
    runs-on: ubuntu-latest
    name: Autotools build on Linux
    steps:
    - name: Install system dependencies
      run: |
        sudo apt-get update -yq
        sudo apt-get install -yq --no-install-recommends \
            zlib1g-dev libmpich-dev mpich
    - name: Checkout source code
      uses: actions/checkout@v3
      with:
        submodules: true
    - name: Run bootstrap script
      run: ./bootstrap
    - name: Make check with debug, without BLAS and shared
      shell: bash
      run: |
        DIR="checkdebug_sharedBLAS" && mkdir -p "$DIR" && cd "$DIR"
        ../configure --disable-shared --without-blas --enable-debug \
            CFLAGS="-O0 -g -Wall"
        make -j V=0
        make -j check V=0
    - name: Make check with MPI and debug
      shell: bash
      run: |
        DIR="checkMPIdebug" && mkdir -p "$DIR" && cd "$DIR"
        ../configure --enable-mpi --enable-debug CFLAGS="-O0 -g -Wall"
        make -j V=0
        make -j check V=0
    - name: Make check with MPI, without debug
      shell: bash
      run: |
        DIR="checkMPI" && mkdir -p "$DIR" && cd "$DIR"
        ../configure --enable-mpi CFLAGS="-O2"
        make -j V=0
        make -j check V=0
    - name: Make check with MPI, debug and C++ compiler
      shell: bash
      run: |
        # The fabs check for C++ is a wontfix for this compatibility branch.
        echo "Not running the C++ configuration in this branch."
        # DIR="checkMPIdebugCXX" && mkdir -p "$DIR" && cd "$DIR"
        # ../configure --enable-mpi --enable-debug CFLAGS="-O0" CC=mpicxx
        # make -j V=0
        # make -j check V=0
    - name: Make distcheck without MPI and debug
      shell: bash
      run: |
        DIR="distcheck" && mkdir -p "$DIR" && cd "$DIR"
        ../configure
        make -j distcheck V=0
    - name: Save test suite log
      if: always()
      uses: actions/upload-artifact@v3
      with:
        name: test_suite_log
        path: ./**/test-suite.log

  linux-install:
    runs-on: ubuntu-latest
    name: Make install on Linux
    steps:
    - name: Install system dependencies
      run: |
        sudo apt-get update -yq
        sudo apt-get install -yq --no-install-recommends \
            zlib1g-dev libmpich-dev mpich
    - name: Checkout source code
      uses: actions/checkout@v3
      with:
        submodules: true
    - name: Fix libsc to specific version
      shell: bash
      run: |
        cd sc
        git fetch --tags
        git checkout v2.3.6
    - name: Run bootstrap script
      run: ./bootstrap
    - name: Install libsc with debug, without LAPACK and shared
      shell: bash
      run: |
        DIR="sc-checkdebug_sharedLAPACK" && mkdir -p "$DIR" && cd "$DIR"
        ../sc/configure --disable-shared --without-lapack --enable-debug \
            CFLAGS="-O0 -g -Wall -pedantic"
        make -j V=0
        make -j check V=0
        make -j install V=0
        rm -rf sc/
    - name: Install p4est with debug, without LAPACK and shared
      shell: bash
      run: |
        DIR="p4est-checkdebug_sharedLAPACK" && mkdir -p "$DIR" && cd "$DIR"
        ../configure --disable-shared --without-lapack --enable-debug \
            --with-sc="$PWD/../sc-checkdebug_sharedLAPACK/local" \
            CFLAGS="-O0 -g -Wall -pedantic"
        make -j V=0
        make -j check V=0
        make -j install V=0

  linux-tarball:
    runs-on: ubuntu-latest
    name: Pack tarball on Linux
    steps:
    - name: Install system dependencies
      run: |
        sudo apt-get update -yq
        sudo apt-get install -yq --no-install-recommends \
            zlib1g-dev libmpich-dev mpich
    - name: Checkout source code
      uses: actions/checkout@v3
      with:
        submodules: true
        fetch-depth: 0
    - name: Identify version
      shell: bash
      run: |
        git tag
        git describe --abbrev=4 --match 'v*'
    - name: Run bootstrap script
      run: ./bootstrap
    - name: Configure and make
      shell: bash
      run: |
        DIR="tarball" && mkdir -p "$DIR" && cd "$DIR"
        ../configure --enable-mpi --enable-debug --without-blas \
            CFLAGS="-O0 -g -pedantic -Wall -Wextra -Werror -Wno-unused-parameter \
                    -Wno-builtin-declaration-mismatch -Wno-implicit-fallthrough"
        make -j V=0
        make -j check V=0
        make -j distcheck V=0
        mv p4est-*.tar.gz ..
    - name: Save tarball
      uses: actions/upload-artifact@v3
      with:
        name: p4est_tarball
        path: ./p4est-*.tar.gz