Update GitHub Actions images (#352)

* Remove `macOS 11`
  * Homebrew no longer supports [`macOS < 12`](https://docs.brew.sh/Installation)
* Add `FreeBSD 14`
* Remove `FreeBSD 12`
* Add `Fedora 39`
* Remove `Fedora 37`
* Add `Ubuntu` rolling
* Allow tests using latest `Mapnik` to fail
  * Updates occasionally cause failures to occur
This commit is contained in:
Hummeltech
2023-11-26 12:21:09 -07:00
committed by GitHub
parent e94fde2982
commit bc8126cc69
3 changed files with 48 additions and 18 deletions

View File

@ -11,7 +11,6 @@ jobs:
${{ matrix.image }} ${{ matrix.image }}
(${{ matrix.build_system }}) (${{ matrix.build_system }})
(${{ matrix.compiler }}) (${{ matrix.compiler }})
${{ matrix.mapnik_latest && '(Latest Mapnik)' || '' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -20,17 +19,16 @@ jobs:
- "debian:11" - "debian:11"
- "debian:12" - "debian:12"
- "debian:testing" - "debian:testing"
- "fedora:37"
- "fedora:38" - "fedora:38"
- "fedora:39"
- "fedora:rawhide" - "fedora:rawhide"
- "opensuse/leap:15" - "opensuse/leap:15"
- "ubuntu:20.04" - "ubuntu:20.04"
- "ubuntu:rolling"
build_system: build_system:
- CMake - CMake
compiler: compiler:
- GNU - GNU
mapnik_latest:
- false
on_default_branch: on_default_branch:
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }} - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }}
include: include:
@ -46,14 +44,6 @@ jobs:
- image: "ubuntu:22.04" - image: "ubuntu:22.04"
build_system: CMake build_system: CMake
compiler: LLVM compiler: LLVM
- image: "debian:12"
build_system: CMake
compiler: GNU
mapnik_latest: true
- image: "ubuntu:22.04"
build_system: CMake
compiler: GNU
mapnik_latest: true
exclude: exclude:
- on_default_branch: false - on_default_branch: false
fail-fast: false fail-fast: false
@ -91,6 +81,47 @@ jobs:
- name: Install `mod_tile` - name: Install `mod_tile`
uses: ./.github/actions/install uses: ./.github/actions/install
Linux-Latest-Mapnik:
continue-on-error: true
name: >-
${{ matrix.image }}
(Latest Mapnik)
(${{ matrix.build_system }})
(${{ matrix.compiler }})
runs-on: ubuntu-latest
strategy:
matrix:
image:
- "debian:12"
- "ubuntu:22.04"
build_system:
- CMake
compiler:
- GNU
mapnik_latest:
- true
fail-fast: false
container:
env:
CC: ${{ matrix.compiler == 'LLVM' && 'clang' || 'gcc' }}
CXX: ${{ matrix.compiler == 'LLVM' && 'clang++' || 'g++' }}
image: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/dependencies/install
- name: Build `mod_tile`
uses: ./.github/actions/build
- name: Test `mod_tile`
uses: ./.github/actions/test
- name: Install `mod_tile`
uses: ./.github/actions/install
macOS: macOS:
env: env:
CFLAGS: -Wno-implicit-function-declaration CFLAGS: -Wno-implicit-function-declaration
@ -105,7 +136,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- macos-11
- macos-12 - macos-12
build_system: build_system:
- CMake - CMake
@ -145,7 +175,7 @@ jobs:
FreeBSD: FreeBSD:
continue-on-error: true continue-on-error: true
env: env:
BUILD_PARALLEL_LEVEL: 4 BUILD_PARALLEL_LEVEL: 2
LIBRARY_PATH: /usr/local/lib LIBRARY_PATH: /usr/local/lib
TMPDIR: /tmp TMPDIR: /tmp
name: >- name: >-
@ -156,7 +186,7 @@ jobs:
strategy: strategy:
matrix: matrix:
box_generic: box_generic:
- freebsd12 - freebsd13
build_system: build_system:
- CMake - CMake
compiler: compiler:
@ -164,7 +194,7 @@ jobs:
on_default_branch: on_default_branch:
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }} - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }}
include: include:
- box_generic: freebsd13 - box_generic: freebsd14
build_system: CMake build_system: CMake
compiler: LLVM compiler: LLVM
exclude: exclude:

View File

@ -4,7 +4,7 @@ This document provides users with step-by-step instructions on how to compile an
Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details. Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details.
## Fedora 34/35/36/37/38 ## Fedora 34/35/36/37/38/39
```shell ```shell
#!/usr/bin/env bash #!/usr/bin/env bash

View File

@ -4,7 +4,7 @@ This document provides users with step-by-step instructions on how to compile an
Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details. Please see our [Continuous Integration script](/.github/workflows/build-and-test.yml) for more details.
## FreeBSD 12/13 ## FreeBSD 12/13/14
```shell ```shell
#!/usr/bin/env sh #!/usr/bin/env sh