1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-19 19:45:15 +00:00
conky/.github/workflows/build-and-test-macos.yaml

58 lines
1.2 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
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 \
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@v3
- 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