From 4281b15f4f255de12d48982ac9682ebc63e06a2a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 24 Oct 2022 22:13:38 +0200 Subject: [PATCH] Factorize deps list --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b245246a..3768ba80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: pull_request: branches: [ master ] +env: + deps: libpcaudio-dev libsonic-dev ronn kramdown + jobs: build: @@ -105,7 +108,7 @@ jobs: if: matrix.arch == 'x86-32' - name: dependencies-apt if: matrix.os == 'ubuntu-latest' - run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown ${{ matrix.deps }} ${{ matrix.archdeps }} + run: sudo apt-get update && sudo apt-get install ${{ env.deps }} ${{ matrix.deps }} ${{ matrix.archdeps }} - name: dependencies-brew if: matrix.os == 'macos-latest' run: brew install libtool automake ronn OJFord/homebrew-formulae/kramdown ${{ matrix.archdeps }} ; @@ -152,7 +155,7 @@ jobs: run: sudo dpkg --add-architecture i386 if: matrix.arch == 'x86-32' - name: dependencies - run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown reprotest ${{ matrix.archdeps }} + run: sudo apt-get update && sudo apt-get install ${{ env.deps }} reprotest ${{ matrix.archdeps }} - name: autoconf run: ./autogen.sh ; chmod -x INSTALL m4/*.m4 - name: run @@ -165,7 +168,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: dependencies - run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown + run: sudo apt-get update && sudo apt-get install ${{ env.deps }} - name: autoconf run: ./autogen.sh ; chmod -x INSTALL m4/*.m4 - name: configure