2021-03-01 12:03:35 -06:00
|
|
|
name: Build and test on macOS
|
2022-12-26 13:54:10 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-04 12:01:39 -05:00
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
2022-12-26 13:54:10 -05:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-04 12:01:39 -05:00
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
2022-12-26 13:54:10 -05:00
|
|
|
|
2022-10-13 15:32:01 -05:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2021-03-01 12:03:35 -06:00
|
|
|
jobs:
|
|
|
|
build:
|
2024-03-09 15:43:46 -05:00
|
|
|
env:
|
|
|
|
HOMEBREW_NO_INSTALL_UPGRADE: 1
|
2024-03-09 16:09:39 -05:00
|
|
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
2021-03-01 12:03:35 -06:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
2022-09-10 10:19:52 -05:00
|
|
|
- macos-11
|
|
|
|
- macos-12
|
2024-02-22 08:37:38 -05:00
|
|
|
- macos-13
|
2024-02-25 19:49:25 -05:00
|
|
|
- macos-14
|
2021-03-01 12:03:35 -06:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-03-09 15:43:46 -05:00
|
|
|
brew install --force \
|
2023-02-16 21:41:27 -05:00
|
|
|
cmake \
|
2021-03-01 12:03:35 -06:00
|
|
|
freetype \
|
|
|
|
gettext \
|
|
|
|
imlib2 \
|
|
|
|
lcov \
|
|
|
|
librsvg \
|
|
|
|
libxft \
|
|
|
|
libxinerama \
|
2023-02-17 04:03:14 +01:00
|
|
|
libxfixes \
|
2023-11-09 14:05:27 +01:00
|
|
|
libxi \
|
2022-12-25 08:21:38 -05:00
|
|
|
lua \
|
2023-02-16 21:49:00 -05:00
|
|
|
ninja \
|
2024-03-09 16:23:27 -05:00
|
|
|
pkg-config \
|
|
|
|
|| true # Ignore errors
|
2021-03-01 12:03:35 -06:00
|
|
|
- name: Checkout
|
2023-09-04 17:18:19 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-02-17 04:03:14 +01:00
|
|
|
- run: mkdir build
|
2021-03-01 12:03:35 -06:00
|
|
|
- name: Configure with CMake
|
2023-02-17 04:03:14 +01:00
|
|
|
working-directory: build
|
2023-02-24 19:37:59 -05:00
|
|
|
run: |
|
|
|
|
cmake .. -G Ninja \
|
2023-02-17 04:03:14 +01:00
|
|
|
-DMAINTAINER_MODE=ON \
|
|
|
|
-DBUILD_WAYLAND=OFF \
|
|
|
|
-DBUILD_TESTS=ON
|
2021-03-01 12:03:35 -06:00
|
|
|
- name: Compile
|
2022-12-26 13:54:10 -05:00
|
|
|
run: cmake --build build
|
2021-03-01 12:03:35 -06:00
|
|
|
- name: Test
|
|
|
|
working-directory: build
|
2022-12-26 13:54:10 -05:00
|
|
|
run: ctest
|