refactor(ci): don't ignore workflow changes #2
This file contains 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: | |
workflow_dispatch: | |
inputs: | |
debug: | |
type: boolean | |
description: Enable Debugging | |
push: | |
branches: ["**"] | |
paths-ignore: | |
- "**/*.md" | |
pull_request: | |
branches: ["**"] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
config: ["Release", "Debug"] | |
container: ["archlinux", "fedora:40"] | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
name: π§ͺ Test on ${{ matrix.container }} (βοΈ ${{ matrix.config }}) | |
steps: | |
- name: π₯ Checkout | |
uses: actions/checkout@v4 | |
- name: π§° Install Dependencies | |
if: ${{ matrix.container == 'archlinux' }} | |
run: "pacman --noconfirm -Syu base-devel cmake gcc git make pipewire pipewire-pulse" | |
- name: π§° Install Dependencies | |
if: ${{ matrix.container == 'fedora:40' }} | |
run: "dnf install -y pipewire-devel make automake git gcc gcc-c++ kernel-devel cmake libasan" | |
- name: π Debug Workflow | |
if: ${{ github.event.inputs.debug == 'true' }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
install-dependencies: false | |
limit-access-to-actor: true | |
- name: π¨ Compile | |
run: "mkdir build && cd build && cmake .. -Drohrkabel_examples=ON -Drohrkabel_sanitizer=ON && cmake --build . --config ${{ matrix.config }}" |