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

43 lines
1.0 KiB
YAML
Raw Normal View History

2021-03-01 18:03:35 +00:00
name: Build and test on macOS
on: [push, pull_request]
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 \
freetype \
gettext \
imlib2 \
lcov \
librsvg \
libxft \
libxinerama \
lua
- name: Checkout
uses: actions/checkout@v3
2021-03-01 18:03:35 +00:00
- name: Configure with CMake
run: |
2022-10-06 18:38:20 +00:00
set -x
2021-03-01 18:03:35 +00:00
mkdir build
cd build
cmake .. \
-DMAINTAINER_MODE=ON \
2022-12-09 17:28:40 +00:00
-DBUILD_WAYLAND=OFF \
2021-03-01 18:03:35 +00:00
-DBUILD_TESTS=ON
- name: Compile
working-directory: build
run: make -j5
- name: Test
working-directory: build
run: make test