From 81e6dc7b5b251d8a0e0e8986d497036be93030a3 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 14 Aug 2023 20:57:29 +0200 Subject: [PATCH] github: enable O2 on older gcc versions Gets rid of odd impossible asm constraints error in likbs/string.c. --- .github/workflows/coverity.yml | 11 ++++++++--- .github/workflows/test.yml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 172f6304..cdaac772 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -8,9 +8,14 @@ jobs: coverity: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: ./configure - - uses: vapier/coverity-scan-action@v1 + - name: checkout + uses: actions/checkout@v3 + - name: configure + env: + CFLAGS: -O2 + run: ./configure + - name: coverity + uses: vapier/coverity-scan-action@v1 with: email: ${{ secrets.COVERITY_SCAN_EMAIL }} token: ${{ secrets.COVERITY_SCAN_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 893c166b..6e014932 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: - name: test env: CC: gcc - CFLAGS: -Werror + CFLAGS: -O2 -Werror run: | # Skip pedantic due to compiler being ancient. ./configure