Skip to content

Commit

Permalink
make gcc -Werror skip optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Jul 22, 2024
1 parent d3c3b68 commit 1047bae
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
sils_mockup:
type: boolean
default: false
# skip gcc -Werror from build matrix to support C89-like target
skip_gcc_werror:
type: boolean
default: true
build_msvc:
type: boolean
default: false
Expand Down Expand Up @@ -72,17 +76,16 @@ jobs:
matrix:
compiler: [gcc, clang]
warning: [Werror, Wextra]
exclude:
- compiler: gcc
warning: Werror

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: arkedge/workflows-c2a
ref: ${{ env.SELF_VERSION }}

- uses: ./action-c2a-build
- name: build
if: inputs.skip_gcc_werror && !(matrix.compiler == 'gcc' && matrix.warning == 'Werror')
uses: ./action-c2a-build
env:
CC: ${{ matrix.compiler }}
with:
Expand Down

0 comments on commit 1047bae

Please sign in to comment.