Skip to content

Commit

Permalink
Add macOS 14 to build and test CI workflow (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech authored Mar 14, 2024
1 parent c3d9bd2 commit d67a672
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/actions/autotools/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ runs:
using: composite
steps:
- name: Run `make install`
run: make install
run: ${{ !matrix.image && 'sudo -E' || '' }} make install
shell: bash --noprofile --norc -euxo pipefail {0}

- name: Run `make install-mod_tile`
run: make install-mod_tile
run: ${{ !matrix.image && 'sudo -E' || '' }} make install-mod_tile
shell: bash --noprofile --norc -euxo pipefail {0}
19 changes: 9 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ jobs:
- name: Package `mod_tile`
uses: ./.github/actions/cmake/package
if: |
matrix.build_system == 'CMake'
if: matrix.build_system == 'CMake'

- name: Install `mod_tile`
uses: ./.github/actions/install
Expand Down Expand Up @@ -135,8 +134,7 @@ jobs:

- name: Package `mod_tile`
uses: ./.github/actions/cmake/package
if: |
matrix.build_system == 'CMake'
if: matrix.build_system == 'CMake'

- name: Install `mod_tile`
uses: ./.github/actions/install
Expand All @@ -146,7 +144,6 @@ jobs:
CFLAGS: --coverage
CXXFLAGS: --coverage
LDFLAGS: -undefined dynamic_lookup
LIBRARY_PATH: /usr/local/lib
TEST_PARALLEL_LEVEL: 1
name: >-
${{ matrix.os }}
Expand All @@ -158,17 +155,18 @@ jobs:
matrix:
os:
- macos-12
- macos-13
build_system:
- CMake
compiler:
- LLVM
on_default_branch:
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }}
include:
- os: macos-13
- os: macos-14
build_system: Autotools
compiler: LLVM
- os: macos-13
- os: macos-14
build_system: CMake
compiler: LLVM
exclude:
Expand All @@ -180,9 +178,11 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/dependencies/install

- name: Set ICU_ROOT
- name: Set CPATH, ICU_ROOT & LIBRARY_PATH
run: |
echo "CPATH=$(brew --prefix)/include" >> ${GITHUB_ENV}
echo "ICU_ROOT=$(brew --prefix icu4c)" >> ${GITHUB_ENV}
echo "LIBRARY_PATH=$(brew --prefix)/lib" >> ${GITHUB_ENV}
- name: Build `mod_tile`
uses: ./.github/actions/build
Expand All @@ -199,8 +199,7 @@ jobs:

- name: Package `mod_tile`
uses: ./.github/actions/cmake/package
if: |
matrix.build_system == 'CMake'
if: matrix.build_system == 'CMake'

- name: Install `mod_tile`
uses: ./.github/actions/install
Expand Down
6 changes: 3 additions & 3 deletions docs/build/building_on_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## macOS 11/12/13
## macOS 11/12/13/14

```shell
#!/usr/bin/env bash
Expand All @@ -28,11 +28,11 @@ brew install \
pkg-config

# Download, Build, Test & Install `mod_tile`
export CFLAGS="-Wno-implicit-function-declaration"
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
export CPATH=$(brew --prefix)/include
export ICU_ROOT=$(brew --prefix icu4c)
export LDFLAGS="-undefined dynamic_lookup"
export LIBRARY_PATH="/usr/local/lib"
export LIBRARY_PATH=$(brew --prefix)/lib
rm -rf /tmp/mod_tile_src /tmp/mod_tile_build
mkdir /tmp/mod_tile_src /tmp/mod_tile_build
cd /tmp/mod_tile_src
Expand Down

0 comments on commit d67a672

Please sign in to comment.