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

70 lines
1.7 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:
env:
HOMEBREW_NO_INSTALL_UPGRADE: 1
2024-03-09 21:09:39 +00:00
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
2021-03-01 18:03:35 +00:00
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 --force \
cmake \
curl \
freetype \
gettext \
gperf \
imlib2 \
lcov \
librsvg \
libxfixes \
libxft \
libxi \
libxinerama \
libxml2 \
lua \
ninja \
pkg-config \
2024-03-09 21:23:27 +00:00
|| true # Ignore errors
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_RSS=ON \
-DBUILD_CURL=ON \
-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