1010 ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
1111
1212jobs :
13- gcc_ubuntu_18_04 :
13+ ubuntu_18_04_gcc :
1414 strategy :
1515 matrix :
1616 version : [4.8, 5, 6, 8]
17- runs-on : ubuntu-22.04
18- container :
19- image : ubuntu:18.04
17+ runs-on : ubuntu-24.04
2018 env :
2119 CPP : cpp-${{ matrix.version }}
2220 CC : gcc-${{ matrix.version }}
2321 CXX : g++-${{ matrix.version }}
2422 steps :
25- - name : " Install git..."
23+ - name : " Checkout libcdada"
24+ uses : actions/checkout@v3
25+ with :
26+ path : libcdada
27+
28+ - name : Run tests in Ubuntu 18.04 container
2629 run : |
27- apt-get update && apt-get install -y software-properties-common && \
28- apt-get update && add-apt-repository -y ppa:git-core/ppa && \
29- apt-get update && apt-get install -y git
30+ docker run --rm \
31+ -v ${{ github.workspace }}:/workspace \
32+ -w /workspace \
33+ -e CPP="${CPP}" \
34+ -e CC="${CC}" \
35+ -e CXX="${CXX}" \
36+ -e CONFIG_FLAGS="--disable-silent-rules" \
37+ ubuntu:18.04 \
38+ bash -c "
39+ set -e
40+ apt-get update
41+ apt-get install -y software-properties-common
42+ add-apt-repository -y ppa:git-core/ppa
43+ apt-get update
44+ apt-get install -y git
45+ git config --global --add safe.directory /workspace/libcdada
46+ ./libcdada/.github/workflows/deps.sh gcc ${{ matrix.version }}
47+ cd libcdada && .github/workflows/test_script.sh
48+ CONFIG_FLAGS=\"\$CONFIG_FLAGS --enable-debug\" .github/workflows/test_script.sh
49+ "
3050
51+ ubuntu_22_04_gcc :
52+ strategy :
53+ matrix :
54+ version : [9, 10, 11, 12]
55+ runs-on : ubuntu-22.04
56+ env :
57+ CPP : cpp-${{ matrix.version }}
58+ CC : gcc-${{ matrix.version }}
59+ CXX : g++-${{ matrix.version }}
60+ steps :
3161 - name : " Checkout libcdada"
3262 uses : actions/checkout@v3
3363 with :
@@ -45,11 +75,11 @@ jobs:
4575 env :
4676 CONFIG_FLAGS : --disable-silent-rules --enable-debug
4777
48- gcc_ubuntu_22_04 :
78+ ubuntu_24_04_gcc :
4979 strategy :
5080 matrix :
51- version : [9, 10, 11, 12 ]
52- runs-on : ubuntu-22 .04
81+ version : [13, 14 ]
82+ runs-on : ubuntu-24 .04
5383 env :
5484 CPP : cpp-${{ matrix.version }}
5585 CC : gcc-${{ matrix.version }}
72102 env :
73103 CONFIG_FLAGS : --disable-silent-rules --enable-debug
74104
75- clang_ubuntu_22_04 :
105+ ubuntu_22_04_clang :
76106 strategy :
77107 matrix :
78108 version : [11, 12, 13, 14]
@@ -100,3 +130,32 @@ jobs:
100130 run : cd libcdada && .github/workflows/test_script.sh
101131 env :
102132 CONFIG_FLAGS : --disable-silent-rules --enable-debug
133+
134+ ubuntu_24_04_clang :
135+ strategy :
136+ matrix :
137+ version : [15, 16, 17, 18, 19]
138+ runs-on : ubuntu-24.04
139+ env :
140+ CPP : clang-cpp-${{ matrix.version }}
141+ CC : clang-${{ matrix.version }}
142+ CXX : clang++-${{ matrix.version }}
143+ CFLAGS : -gdwarf-4 # clang14 and on use dwarf5, but valgrind doesn't support it
144+ CXXFLAGS : -gdwarf-4
145+ steps :
146+ - name : " Checkout libcdada"
147+ uses : actions/checkout@v3
148+ with :
149+ path : libcdada
150+
151+ - name : " Install deps"
152+ run : ./libcdada/.github/workflows/deps.sh clang ${{ matrix.version }}
153+
154+ - name : " Compile and test using clang-${{ matrix.version }}"
155+ run : cd libcdada && .github/workflows/test_script.sh
156+ env :
157+ CONFIG_FLAGS : --disable-silent-rules
158+ - name : " Compile and test using clang-${{ matrix.version }} (DEBUG)"
159+ run : cd libcdada && .github/workflows/test_script.sh
160+ env :
161+ CONFIG_FLAGS : --disable-silent-rules --enable-debug
0 commit comments