add github CI #3
Workflow file for this run
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
name: On PRs - meson | ||
on: [push, pull_request] | ||
concurrency: | ||
group: ${{github.workflow}}-${{github.head_ref}} | ||
cancel-in-progress: true | ||
jobs: | ||
Linux-GCC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: egor-tensin/setup-gcc@1 | ||
version: latest | ||
Check failure on line 16 in .github/workflows/meson.yml GitHub Actions / On PRs - mesonInvalid workflow file
|
||
- name: Install packages | ||
run: | | ||
python3 -m pip install meson ninja | ||
- name: Compile and Test | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
meson test -C "${{github.workspace}}/build" --verbose | ||
Linux-Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: egor-tensin/setup-clang@1 | ||
version: latest | ||
- name: Install packages | ||
run: | | ||
python3 -m pip install meson ninja | ||
- name: Compile and Test | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
meson test -C "${{github.workspace}}/build" --verbose | ||
MacOS: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install packages | ||
run: | | ||
brew install perl | ||
python3 -m pip install meson ninja | ||
- name: Compile and Test | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
meson test -C "${{github.workspace}}/build" --verbose | ||
DragonflyBSD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
uses: vmactions/dragonflybsd-vm@v1 | ||
with: | ||
prepare: | | ||
pkg install -y ninja meson pkgconf pcre2 perl5 | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
meson test -C "${{github.workspace}}/build" --verbose | ||
FreeBSD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
prepare: | | ||
pkg install -y ninja meson pkgconf pcre2 perl5 | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
meson test -C "${{github.workspace}}/build" --verbose | ||
NetBSD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
prepare: | | ||
pkg_add ninja meson pkgconf pcre2 perl5 | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
# TODO: figure out why tests/lighttpd.conf not found; works for FreeBSD and DragonFly | ||
#meson test -C "${{github.workspace}}/build" --verbose | ||
OpenBSD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
prepare: | | ||
pkg_add ninja meson pkgconf pcre2 perl5 | ||
run: | | ||
meson setup "${{github.workspace}}/build" -Dwarning_level=3 | ||
meson compile -C "${{github.workspace}}/build" --verbose | ||
# TODO: figure out why tests/lighttpd.conf not found; works for FreeBSD and DragonFly | ||
#meson test -C "${{github.workspace}}/build" --verbose |