Skip to content

Simplify and modernize CI #32

Simplify and modernize CI

Simplify and modernize CI #32

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
include:
- os: ubuntu-latest
cmake_extra_args: -DUNICODE_BLOCKS=/usr/share/unicode/Blocks.txt
install_packages: |
sudo apt update
sudo apt install gettext libcairo2-dev libglib2.0-dev libfreetype6-dev libpango1.0-dev unicode-data
- os: macos-latest
cmake_extra_args: -DCMAKE_PREFIX_PATH=$(brew --prefix gettext)
install_packages: |
brew update
brew install cairo fontconfig freetype gettext glib pango pkg-config
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: ${{ matrix.install_packages }}
- name: Configure
run: cmake -GNinja -Bbuild -Wdev -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_extra_args }}
- name: Build
run: cmake --build build -v
- name: Test
run: build/src/fntsample --help