1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
name: Meson
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu",
os: ubuntu-latest,
tests: "true",
gtk_tsm: "true"
}
- {
name: "macOS",
os: macos-latest,
tests: "true",
gtk_tsm: "false"
}
steps:
- uses: actions/checkout@v3
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: Install dependencies on Ubuntu
if: startsWith(matrix.config.name, 'Ubuntu')
run: sudo apt-get update && sudo apt-get install -y meson check valgrind libgtk-3-dev libpango1.0-dev pkg-config
- name: Install dependencies on macOS
if: startsWith(matrix.config.name, 'macOS')
run: brew install check meson ninja
- name: Configure Meson
run: meson setup -Dtests=${{matrix.config.tests}} -Dgtktsm=${{matrix.config.gtk_tsm}} -Dextra_debug=true build
- name: Build
working-directory: ./build
run: meson compile
- name: Test
working-directory: ./build
run: meson test
|