Skip to content

Build: Support Meson #2328

Build: Support Meson

Build: Support Meson #2328

Workflow file for this run

name: FVWM3 CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-autotools-gcc:
runs-on: ubuntu-latest
container:
image: fvwmorg/fvwm3-build:latest
env:
GO111MODULE: "on"
steps:
- name: checkout
uses: actions/checkout@v4
- name: set git safe directory
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Autotools configure
run: ./autogen.sh && CFLAGS="-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" ./configure --enable-mandoc --enable-golang
- name: Autotools build
run: make -j
build-meson-clang:
runs-on: ubuntu-latest
container: fvwmorg/fvwm3-build:latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set git safe directory
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: configure meson build
run: CC=clang CC_LD=lld meson setup builddir -Dhtmldoc=true -Dmandoc=true
- name: run build
run: ninja -C builddir
notification:
runs-on: ubuntu-20.04
name: notifications
steps:
- name: irc pull request
uses: Gottox/irc-message-action@v2.1.3
if: github.event_name == 'pull_request'
with:
server: irc.libera.chat
notice: false
channel: "#fvwm"
nickname: fvwm3-gh-pr
message: "PR: [${{ github.event.pull_request.number }}]: ${{ github.event.pull_request.title }} -- [${{ github.event.pull_request.user.login }}]"
- name: irc tag created
uses: Gottox/irc-message-action@v2.1.3
if: github.event_name == 'create' && github.event.ref_type == 'tag'
with:
server: irc.libera.chat
notice: false
channel: "#fvwm"
nickname: fvwm-gh
message: ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}