Skip to content

Commit

Permalink
Set more config options when building c89
Browse files Browse the repository at this point in the history
Otherwise off-by-default features mightn't get checked properly
  • Loading branch information
mkj committed May 1, 2024
1 parent 90c18cc commit 362ddc8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
# early declarations so we specify it anyway.
- name: c89
extracflags: -std=c89 -Wdeclaration-after-statement
# enable all options
nondefault: 1
configure_flags: --enable-pam

- name: macos 12
os: macos-12
Expand All @@ -80,15 +83,15 @@ jobs:

# Check that debug code doesn't bitrot
- name: DEBUG_TRACE
nondefault: 1
configure_flags: --enable-pam
localoptions: |
#define DEBUG_TRACE 5
# Check off-by-default options don't bitrot
- name: nondefault options
nondefault: 1
configure_flags: --enable-pam
localoptions: |
#define DROPBEAR_USE_SSH_CONFIG 1

- name: most options disabled
configure_flags: --disable-harden --disable-zlib --disable-openpty --disable-lastlog
Expand Down Expand Up @@ -210,7 +213,9 @@ jobs:
sed -i "s/DEFAULT_IDLE_TIMEOUT 1/DEFAULT_IDLE_TIMEOUT 99/" localoptions.h
- name: make
run: make -j3 $MAKE_TARGET
run: |
cat localoptions.h
make -j3 $MAKE_TARGET
- name: multilink
if: ${{ matrix.multilink }}
Expand Down

0 comments on commit 362ddc8

Please sign in to comment.