1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-10-02 15:09:07 +00:00
conky/.github/workflows/build-and-test-macos.yaml

61 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-01 18:03:35 +00:00
name: Build and test on macOS
on:
push:
branches:
- main
2023-03-04 17:01:39 +00:00
paths-ignore:
- web/**
- doc/**
pull_request:
branches:
- main
2023-03-04 17:01:39 +00:00
paths-ignore:
- web/**
- doc/**
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
2024-02-22 13:37:38 +00:00
- macos-13
2024-02-26 00:49:25 +00:00
- macos-14
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 \
libxfixes \
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
uses: actions/checkout@v4
- run: mkdir build
2021-03-01 18:03:35 +00:00
- name: Configure with CMake
working-directory: build
2023-02-25 00:37:59 +00:00
run: |
cmake .. -G Ninja \
-DMAINTAINER_MODE=ON \
-DBUILD_WAYLAND=OFF \
-DBUILD_TESTS=ON
2021-03-01 18:03:35 +00:00
- name: Compile
run: cmake --build build
2021-03-01 18:03:35 +00:00
- name: Test
working-directory: build
run: ctest