2022-01-16 21:05:41 -07:00
|
|
|
name: macos
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Set permissions at the job level.
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
macos:
|
2023-05-12 13:00:32 -06:00
|
|
|
runs-on: macos-12
|
2022-01-16 21:05:41 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
steps:
|
2022-12-06 16:41:11 -07:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-16 21:05:41 -07:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-12-06 16:41:11 -07:00
|
|
|
- uses: actions/setup-python@v4
|
2022-01-16 21:05:41 -07:00
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-05-14 07:11:15 -06:00
|
|
|
python -m pip install --upgrade meson PyYAML
|
2023-06-23 03:12:10 -06:00
|
|
|
brew install libxml2 bison ninja graphviz
|
|
|
|
# HACK: force Doxygen version 1.9.6, because 1.9.7 breaks our cool URIs.
|
|
|
|
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/d2267b9f2ad247bc9c8273eb755b39566a474a70/Formula/doxygen.rb
|
|
|
|
brew install --formula doxygen.rb
|
|
|
|
rm doxygen.rb
|
2022-01-16 21:05:41 -07:00
|
|
|
brew link bison --force
|
|
|
|
env:
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
|
|
|
- name: Setup
|
|
|
|
run: |
|
|
|
|
PATH="/usr/local/opt/bison/bin:${PATH}" meson setup -Denable-wayland=false -Denable-x11=false build
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
PATH="/usr/local/opt/bison/bin:${PATH}" meson compile -C build
|
|
|
|
- name: Test
|
|
|
|
run:
|
|
|
|
meson test -C build --print-errorlogs
|