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