* Added GIT_SHALLOW=TRUE #4
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
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
debug: | |
type: boolean | |
description: Enable Debugging | |
name: 🛸 Test & Build | |
jobs: | |
run-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
backend: | |
- Qt5 | |
- Qt6 | |
- WebKitGtk | |
- WebKit | |
- WebView2 | |
config: | |
- Release | |
- Debug | |
include: | |
- backend: Qt5 | |
platform: Linux | |
os: ubuntu-latest | |
container: archlinux:base-devel | |
- backend: Qt6 | |
platform: Linux | |
os: ubuntu-latest | |
container: archlinux:base-devel | |
- backend: WebKitGtk | |
platform: Linux | |
os: ubuntu-latest | |
container: archlinux:base-devel | |
- backend: WebKit | |
platform: MacOS | |
os: macos-latest | |
- backend: WebView2 | |
platform: Windows | |
os: windows-latest | |
install: "true" | |
cmake-args: "-Dsaucer_package_all=ON -Dsaucer_serializer=Rflpp" | |
name: ${{ matrix.backend }}-${{ matrix.config }} | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
steps: | |
- name: 📥 Checkout | |
uses: actions/checkout@v4 | |
- name: 👽 Setup Saucer | |
uses: ./.github/actions/setup | |
with: | |
backend: ${{ matrix.backend }} | |
platform: ${{ matrix.platform }} | |
build-type: ${{ matrix.config }} | |
cmake-args: -Dsaucer_tests=ON -Dsaucer_examples=ON ${{ matrix.cmake-args }} | |
install: ${{ matrix.install }} | |
- name: 🐛 Debug | |
if: ${{ github.event.inputs.debug == 'true' }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
install-dependencies: false | |
limit-access-to-actor: true | |
- name: 🧪 Test | |
timeout-minutes: 10 | |
uses: ./.github/actions/test | |
if: ${{ matrix.backend != 'WebKitGtk' && matrix.backend != 'WebKit' && matrix.backend != 'WebView2' }} | |
- name: 📦 Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ matrix.install == 'true' }} | |
with: | |
name: ${{ matrix.backend }}-${{ matrix.config }} | |
path: artifact |