Skip to content

Commit 7ef96fb

Browse files
committed
Github actions: Cleanup
1 parent 46ea605 commit 7ef96fb

File tree

1 file changed

+19
-41
lines changed

1 file changed

+19
-41
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -17,116 +17,100 @@ jobs:
1717
# Uses gcc 7.5.0, clang 6.0.0, cmake 3.10.2
1818
image: "ubuntu:18.04"
1919
ubuntu: 18
20-
installer: apt
2120
- name: Ubuntu-20
2221
# Uses gcc 9.3.0, clang 10.0.0, cmake 3.16.3
2322
image: "ubuntu:20.04"
2423
ubuntu: 20
25-
installer: apt
2624
- name: Ubuntu-22
2725
# Uses gcc 12.2.0, clang 15.0.2, cmake 3.24.2
2826
image: "ubuntu:22.04"
2927
ubuntu: 22
30-
installer: apt
3128
CXXFLAGS: -Wno-stringop-overread
3229
- name: Debian-10
3330
# Uses gcc 8.3.0, clang 7.0.1, cmake 3.13.4
3431
image: "debian:buster"
35-
installer: apt
3632
- name: Debian-11
3733
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
3834
image: "debian:bullseye"
39-
installer: apt
4035
- name: Debian-11
4136
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
4237
image: "debian:bullseye"
43-
installer: apt
4438
cpp_version: c++17
4539
- name: Debian-11
4640
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
4741
image: "debian:bullseye"
48-
installer: apt
4942
cpp_version: c++20
5043
- name: Debian-11
5144
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
5245
image: "debian:bullseye"
53-
installer: apt
5446
c_compiler: clang
5547
cpp_compiler: clang++
5648
cpp_version: c++17
5749
- name: Debian-11
5850
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
5951
image: "debian:bullseye"
60-
installer: apt
6152
c_compiler: clang
6253
cpp_compiler: clang++
6354
cpp_version: c++20
6455
- name: Debian-11
6556
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
6657
image: "debian:bullseye"
67-
installer: apt
6858
build_type: RelWithDebInfo
6959
- name: Debian-11
7060
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
7161
image: "debian:bullseye"
72-
installer: apt
7362
c_compiler: clang
7463
cpp_compiler: clang++
7564
- name: Debian-11
7665
# Uses gcc 10.2.1, clang 11.0.1, cmake 3.18.4
7766
image: "debian:bullseye"
78-
installer: apt
7967
c_compiler: clang
8068
cpp_compiler: clang++
8169
CXXFLAGS: -fsanitize=address,undefined,integer -fno-sanitize-recover=all -fno-omit-frame-pointer
8270
LDFLAGS: -fsanitize=address,undefined,integer
8371
- name: Debian-Testing
8472
# Uses gcc 10.3.0, clang 11.1.0, cmake 3.21.3
8573
image: "debian:testing"
86-
installer: apt
8774
CXXFLAGS: -Wno-stringop-overread
8875
- name: Debian-Testing
8976
# Uses gcc 10.3.0, clang 11.1.0, cmake 3.21.3
9077
image: "debian:testing"
91-
installer: apt
9278
c_compiler: clang
9379
cpp_compiler: clang++
9480
- name: Debian-Experimental
9581
# Uses gcc 11, clang 14, cmake 3.21.3
9682
image: "debian:experimental"
97-
installer: apt
9883
CXXFLAGS: -Wno-stringop-overread
9984
- name: Debian-Experimental
10085
# Uses gcc 11, clang 14, cmake 3.21.3
10186
image: "debian:experimental"
102-
installer: apt
10387
c_compiler: clang-14
10488
cpp_compiler: clang++-14
10589
- name: Fedora-35
10690
# Uses gcc 11.2.1, clang 12.0.1, cmake 3.20.5
10791
image: "fedora:35"
108-
installer: dnf
10992
CXXFLAGS: -Wno-stringop-overread
11093
- name: Fedora-36
11194
# Uses gcc 12.2.0, clang 14.0.5, cmake 3.24.2
11295
image: "fedora:36"
113-
installer: dnf
11496
CXXFLAGS: -Wno-stringop-overread
11597
container:
11698
image: ${{ matrix.image }}
11799
env:
118100
LANG: en_US.UTF-8
119101
BUILD_TYPE: ${{ matrix.build_type }}
120-
CXXFLAGS: ${{ matrix.CXXFLAGS }}
121-
LDFLAGS: ${{ matrix.LDFLAGS }}
122102
CC: ${{ matrix.c_compiler }}
123103
CXX: ${{ matrix.cpp_compiler }}
104+
CXXFLAGS: ${{ matrix.CXXFLAGS }}
105+
LDFLAGS: ${{ matrix.LDFLAGS }}
124106
CPP_VERSION: ${{ matrix.cpp_version }}
125107
WITH_PROJ: ON
126108
APT_LISTCHANGES_FRONTEND: none
127109
DEBIAN_FRONTEND: noninteractive
128110
steps:
129111
- name: Prepare container (apt)
112+
shell: bash
113+
if: startsWith(matrix.image, 'debian:') || startsWith(matrix.image, 'ubuntu:')
130114
run: |
131115
apt-get update -qq
132116
apt-get install -yq \
@@ -142,13 +126,13 @@ jobs:
142126
make \
143127
spatialite-bin \
144128
zlib1g-dev
145-
shell: bash
146-
if: matrix.installer == 'apt'
147129
- name: Install compiler
148130
shell: bash
149-
run: apt-get install -yq clang-14
150131
if: matrix.cpp_compiler == 'clang++-14'
132+
run: apt-get install -yq clang-14
151133
- name: Prepare container (dnf)
134+
shell: bash
135+
if: startsWith(matrix.image, 'fedora:')
152136
run: |
153137
dnf install --quiet --assumeyes \
154138
bzip2-devel \
@@ -163,8 +147,6 @@ jobs:
163147
proj-devel \
164148
spatialite-tools \
165149
zlib-devel
166-
shell: bash
167-
if: matrix.installer == 'dnf'
168150
- uses: actions/checkout@v3
169151
- uses: ./.github/actions/install-from-git
170152
- uses: ./.github/actions/cmake
@@ -191,25 +173,21 @@ jobs:
191173
- uses: ./.github/actions/build
192174
- uses: ./.github/actions/ctest
193175

194-
macos11-dev:
195-
runs-on: macos-11
196-
env:
197-
CC: clang
198-
CXX: clang++
199-
BUILD_TYPE: Dev
200-
steps:
201-
- uses: actions/checkout@v3
202-
- uses: ./.github/actions/install-macos
203-
- uses: ./.github/actions/cmake
204-
- uses: ./.github/actions/build
205-
- uses: ./.github/actions/ctest
206-
207-
macos11-release:
208-
runs-on: macos-11
176+
macos:
177+
strategy:
178+
fail-fast: false
179+
matrix:
180+
os:
181+
- "macos-11"
182+
build_type: [Dev]
183+
include:
184+
- os: "macos-11"
185+
build_type: Release
186+
runs-on: ${{ matrix.os }}
209187
env:
210188
CC: clang
211189
CXX: clang++
212-
BUILD_TYPE: Release
190+
BUILD_TYPE: ${{ matrix.build_type }}
213191
steps:
214192
- uses: actions/checkout@v3
215193
- uses: ./.github/actions/install-macos

0 commit comments

Comments
 (0)