From cf7f9350b839bfd36e4909eb5462e70aed191f39 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 28 Nov 2022 21:32:10 +0800 Subject: [PATCH] CI: don't run dropbearkey for disabled types --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f07e6ca..e7683f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,6 +82,7 @@ jobs: - name: most options disabled configure_flags: --disable-harden --disable-zlib --disable-openpty --disable-lastlog + sanitykey: no localoptions: | #define DROPBEAR_RSA 0 #define INETD_MODE 0 @@ -234,16 +235,22 @@ jobs: # Sanity check that the binary runs - name: genrsa + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t rsa -f testrsa - name: gendss + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t dss -f testdss - name: genecdsa256 + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 - name: genecdsa384 + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 - name: genecdsa521 + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 - name: gened25519 + if: ${{ matrix.sanitykey != 'no' }} run: ~/inst/bin/dropbearkey -t ed25519 -f tested25519 - name: fuzz