summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2021-09-21 15:21:47 +0800
committerChocobo1 <Chocobo1@users.noreply.github.com>2021-09-21 15:22:03 +0800
commitb8c3dfca1640fadffbcb0c401376da13ab18a4b8 (patch)
treef9717a2ee819876a0f271160777e43e6e6563164 /.github
parent736dd64f3d60cb87f6114ec85df3833932a5a378 (diff)
downloadppp-b8c3dfca1640fadffbcb0c401376da13ab18a4b8.tar.gz
CI: Deduplicate configure flags by using a variable
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ubuntu.yaml6
1 files 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 }}"