Skip to content

Commit

Permalink
CI/CD: Add LTO options to GCC build
Browse files Browse the repository at this point in the history
While the issue with LTO builds has been resolved in this PR, it was
incidental and we should introduce a CI pipeline that will catch
LTO errors before they make it into a release.

Closes: fvwmorg#1056
Signed-off-by: Matt Jolly <Kangie@gentoo.org>
  • Loading branch information
Kangie committed Aug 22, 2024
1 parent ef9981c commit 3ab7d6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
jobs:
build:
build-autotools-gcc:
runs-on: ubuntu-latest
container:
image: fvwmorg/fvwm3-build:latest
Expand All @@ -20,11 +20,11 @@ jobs:
- name: set git safe directory
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Autotools configure
run: ./autogen.sh && ./configure --enable-mandoc --enable-golang
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:
build-meson-clang:
runs-on: ubuntu-latest
container: fvwmorg/fvwm3-build:latest
steps:
Expand All @@ -45,7 +45,7 @@ jobs:
uses: Gottox/irc-message-action@v2.1.3
if: github.event_name == 'pull_request'
with:
server: "irc.libera.chat"
server: irc.libera.chat
notice: false
channel: "#fvwm"
nickname: fvwm3-gh-pr
Expand All @@ -54,7 +54,7 @@ jobs:
uses: Gottox/irc-message-action@v2.1.3
if: github.event_name == 'create' && github.event.ref_type == 'tag'
with:
server: "irc.libera.chat"
server: irc.libera.chat
notice: false
channel: "#fvwm"
nickname: fvwm-gh
Expand Down

0 comments on commit 3ab7d6a

Please sign in to comment.