Skip to content

Commit

Permalink
Add CI test for building without ASN.1
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltan Fridrich <[email protected]>
  • Loading branch information
ZoltanFridrich committed Oct 3, 2023
1 parent 52f428f commit 946ea59
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/basic-autotools/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ runs:
cat $GITHUB_WORKSPACE/$BUILDDIR/test-suite.log
exit $ret
fi
shell: bash

- name: Distcheck
if: ${{ env.DISTCHECK != 0 }}
run: |
cd $GITHUB_WORKSPACE/$BUILDDIR
if [ "$RUNNER_OS" = "Linux" ]; then
P11_KIT_DEBUG=all $GITHUB_WORKSPACE/build/run-wrapper.sh make distcheck -j$(nproc) V=1
fi
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,33 @@ jobs:
submodules: true
- uses: ./.github/actions/basic-autotools

autotools-no-asn1:
runs-on: ubuntu-latest
env:
BUILD_OPTS: --enable-doc --without-libtasn1 --without-trust-paths
DISTCHECK: 0
container:
image: ghcr.io/p11-glue/p11-kit:master
steps:
# Checkout repo
- uses: actions/checkout@v2
with:
submodules: true
- run: dnf remove -y libtasn1-devel
- uses: ./.github/actions/basic-autotools

meson-no-asn1:
runs-on: ubuntu-latest
container:
image: ghcr.io/p11-glue/p11-kit:master
steps:
# Checkout repo
- uses: actions/checkout@v2
with:
submodules: true
- run: dnf remove -y libtasn1-devel
- uses: ./.github/actions/basic-meson

address-sanitizer:
runs-on: ubuntu-latest
container:
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ACLOCAL_AMFLAGS = -I build/m4

DISTCHECK_CONFIGURE_FLAGS = \
--enable-doc \
--with-libtasn1 \
--without-systemd \
--without-bash-completion \
--disable-coverage \
Expand Down

0 comments on commit 946ea59

Please sign in to comment.