forked from openstreetmap/mod_tile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f617702
commit cccdc0e
Showing
15 changed files
with
158 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.github/actions/dependencies/install/pkg_add-openbsd/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
inputs: | ||
packages: | ||
description: List of package(s) to install | ||
required: true | ||
options: | ||
default: -Iv | ||
description: Option(s) to pass | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install package(s) | ||
run: ${{ !matrix.image && 'sudo' || '' }} pkg_add ${{ inputs.options }} ${{ inputs.packages }} | ||
shell: bash --noprofile --norc -euxo pipefail {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,78 @@ jobs: | |
- name: Install `mod_tile` | ||
uses: ./.github/actions/install | ||
|
||
FreeBSD: | ||
env: | ||
CFLAGS: --coverage | ||
CTEST_CLIENT_HOST: ::1 | ||
CTEST_SERVER_HOST: localhost | ||
CXXFLAGS: --coverage | ||
INSTALL_PREFIX: /usr/local | ||
LIBRARY_PATH: /usr/local/lib | ||
TMPDIR: /tmp | ||
name: >- | ||
${{ matrix.box_generic }} | ||
(${{ matrix.build_system }}) | ||
(${{ matrix.compiler }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
box_generic: | ||
- freebsd13 | ||
build_system: | ||
- CMake | ||
compiler: | ||
- LLVM | ||
on_default_branch: | ||
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} | ||
include: | ||
- box_generic: freebsd14 | ||
build_system: CMake | ||
compiler: LLVM | ||
exclude: | ||
- on_default_branch: false | ||
fail-fast: false | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set `BUILD_PARALLEL_LEVEL` & `TEST_PARALLEL_LEVEL` | ||
run: | | ||
echo "BUILD_PARALLEL_LEVEL=$(nproc)" >> ${GITHUB_ENV} | ||
echo "TEST_PARALLEL_LEVEL=$(nproc)" >> ${GITHUB_ENV} | ||
- name: Provision VM | ||
uses: hummeltech/[email protected] | ||
with: | ||
box: generic/${{ matrix.box_generic }} | ||
cpus: ${{ env.BUILD_PARALLEL_LEVEL }} | ||
memory: 4096 | ||
|
||
# Mapnik is not in the `quarterly` repository (2023.10.12) | ||
- name: Use "latest" repository | ||
run: | | ||
sudo mkdir -p /usr/local/etc/pkg/repos | ||
sed 's#/quarterly#/latest#g' /etc/pkg/FreeBSD.conf | sudo tee /usr/local/etc/pkg/repos/FreeBSD.conf | ||
sudo pkg upgrade | ||
- 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: Process & Report `mod_tile` coverage results | ||
uses: ./.github/actions/coverage | ||
|
||
- name: Package `mod_tile` | ||
uses: ./.github/actions/cmake/package | ||
|
||
- name: Install `mod_tile` | ||
uses: ./.github/actions/install | ||
|
||
macOS: | ||
env: | ||
CFLAGS: --coverage | ||
|
@@ -208,12 +280,10 @@ jobs: | |
- name: Install `mod_tile` | ||
uses: ./.github/actions/install | ||
|
||
FreeBSD: | ||
OpenBSD: | ||
env: | ||
CFLAGS: --coverage | ||
CTEST_CLIENT_HOST: ::1 | ||
CTEST_SERVER_HOST: localhost | ||
CXXFLAGS: --coverage | ||
INSTALL_PREFIX: /usr/local | ||
LIBRARY_PATH: /usr/local/lib | ||
TMPDIR: /tmp | ||
|
@@ -225,19 +295,11 @@ jobs: | |
strategy: | ||
matrix: | ||
box_generic: | ||
- freebsd13 | ||
- openbsd7 | ||
build_system: | ||
- CMake | ||
compiler: | ||
- LLVM | ||
on_default_branch: | ||
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} | ||
include: | ||
- box_generic: freebsd14 | ||
build_system: CMake | ||
compiler: LLVM | ||
exclude: | ||
- on_default_branch: false | ||
fail-fast: false | ||
steps: | ||
- name: Checkout code | ||
|
@@ -249,18 +311,17 @@ jobs: | |
echo "TEST_PARALLEL_LEVEL=$(nproc)" >> ${GITHUB_ENV} | ||
- name: Provision VM | ||
uses: hummeltech/freebsd-vagrant-action@v1.4 | ||
uses: hummeltech/openbsd-vagrant-action@v2 | ||
with: | ||
box: generic/${{ matrix.box_generic }} | ||
cpus: ${{ env.BUILD_PARALLEL_LEVEL }} | ||
memory: 4096 | ||
memory: 8192 | ||
|
||
# Mapnik is not in the `quarterly` repository (2023.10.12) | ||
- name: Use "latest" repository | ||
- name: Install X Windows | ||
run: | | ||
sudo mkdir -p /usr/local/etc/pkg/repos | ||
sed 's#/quarterly#/latest#g' /etc/pkg/FreeBSD.conf | sudo tee /usr/local/etc/pkg/repos/FreeBSD.conf | ||
sudo pkg upgrade | ||
curl -L https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/amd64/xbase$(uname -r | sed 's/\.//').tgz | sudo tar -C / -xzvf - | ||
curl -L https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/amd64/xfont$(uname -r | sed 's/\.//').tgz | sudo tar -C / -xzvf - | ||
sudo ldconfig /usr/*/lib | ||
- name: Install dependencies | ||
uses: ./.github/actions/dependencies/install | ||
|
@@ -271,9 +332,6 @@ jobs: | |
- name: Test `mod_tile` | ||
uses: ./.github/actions/test | ||
|
||
- name: Process & Report `mod_tile` coverage results | ||
uses: ./.github/actions/coverage | ||
|
||
- name: Package `mod_tile` | ||
uses: ./.github/actions/cmake/package | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters