Add build option to skip tests #231
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: [ "*" ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| env: | |
| MATRIX_OS: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Python Dependencies | |
| run: pip install --upgrade meson ninja | |
| - if: matrix.os == 'ubuntu-latest' | |
| name: Install dependencies on Ubuntu | |
| run: | | |
| sudo apt-get update || true | |
| sudo apt-get install -y gtk-doc-tools | |
| - name: MSVC Setup | |
| if: matrix.os == 'windows-latest' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Meson Setup | |
| run: meson setup build $(test $MATRIX_OS = "ubuntu-latest" && echo "-Ddocs=true") | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ninja -C build test | |
| - name: Deploy documentation | |
| if: matrix.os == 'ubuntu-latest' | |
| run: .ci/deploy-docs.sh | |
| build-sheenbidi: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Python Dependencies | |
| run: pip install --upgrade meson ninja | |
| - name: MSVC Setup | |
| if: matrix.os == 'windows-latest' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Meson Setup | |
| run: meson -Dsheenbidi=true build | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ninja -C build test |