From b8c3dfca1640fadffbcb0c401376da13ab18a4b8 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 21 Sep 2021 15:21:47 +0800 Subject: [PATCH] CI: Deduplicate configure flags by using a variable --- .github/workflows/ubuntu.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yaml b/.github/workflows/ubuntu.yaml index 789850e..028193b 100644 --- a/.github/workflows/ubuntu.yaml +++ b/.github/workflows/ubuntu.yaml @@ -4,6 +4,8 @@ on: [push, pull_request] jobs: build_and_test: runs-on: ubuntu-latest + env: + configure_flags: --enable-ipxcp --enable-multilink steps: - uses: actions/checkout@v2 @@ -12,10 +14,10 @@ jobs: run: sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install build-essential autoconf automake pkg-config libtool m4 autoconf-archive libssl-dev libatm1-dev libpcap-dev - name: configure - run: ./autogen.sh --enable-multilink --enable-ipxcp + run: ./autogen.sh ${{ env.configure_flags }} - name: build run: make V=1 CFLAGS="-O2 -g -Wno-unused-result" - name: distcheck - run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-multilink --enable-ipxcp" + run: make distcheck DISTCHECK_CONFIGURE_FLAGS="${{ env.configure_flags }}" -- 2.39.2