Skip to content

[WIP] Wrapped Text Support #479

[WIP] Wrapped Text Support

[WIP] Wrapped Text Support #479

Workflow file for this run

name: MacOS
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
on:
push:
branches: master
paths:
- 'src/**/**'
- 'support/**/*.cpp'
- '**meson.build'
- 'setup-build.*'
- 'subprojects/*.wrap'
- '**/macos.yml'
pull_request:
branches: master
paths:
- 'src/**/**'
- '**meson.build'
- 'setup-build.*'
- 'subprojects/*.wrap'
- '**/macos.yml'
jobs:
build:
name: ${{ matrix.build.name }}
strategy:
fail-fast: false
matrix:
build:
- name: macos
os: macos-latest
- name: macos-no-deps
os: macos-latest
runs-on: ${{ matrix.build.os }}
env:
NETPANZER_DATADIR: ${{ github.workspace }}/data
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Show info
run: |
export -p
echo '${{ toJSON(matrix) }}'
- name: Install dependencies
if: ${{ ! contains(matrix.build.name, 'no-deps') }}
run: |
brew update
brew install \
gettext \
physfs \
pkg-config \
sdl2_ttf \
sdl2_mixer
- run: pip3 install meson ninja
- name: Build
run: |
./setup-build.sh _build -Dnls=${{ ! contains(matrix.build.name, 'no-deps') }}
ninja -v -C _build
- name: Test
run: |
cd _build
meson test --suite=netpanzer -v