1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-19 03:25:17 +00:00
conky/.github/workflows/build-and-test-macos.yaml
2022-12-25 08:34:57 -05:00

44 lines
1.0 KiB
YAML

name: Build and test on macOS
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os:
- macos-11
- macos-12
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
brew install \
freetype \
gettext \
imlib2 \
lcov \
librsvg \
libxft \
libxinerama \
lua \
ninja
- name: Checkout
uses: actions/checkout@v3
- name: Configure with CMake
run: |
set -x
mkdir build
cd build
cmake .. -G Ninja \
-DMAINTAINER_MODE=ON \
-DBUILD_WAYLAND=OFF \
-DBUILD_TESTS=ON
- name: Compile
working-directory: build
run: ninja
- name: Test
working-directory: build
run: ninja test