From: Amos Jeffries Date: Mon, 17 Oct 2022 17:27:07 +0000 (+0000) Subject: CI: Install all known dependencies for test-builds.sh on GitHub (#1162) X-Git-Tag: SQUID_6_0_1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85de45ebcdd867d95a7c94ddc51e55b7b39ea685;p=thirdparty%2Fsquid.git CI: Install all known dependencies for test-builds.sh on GitHub (#1162) The apt-get build-dep trick makes us dependent on Ubuntu decisions, but it saves us work, and we can always add more dependencies manually if we discover holes in the Ubuntu-maintained list. Co-authored-by: Alex Rousskov --- diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 8e69cf0ab9..9cb5886caa 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -102,12 +102,10 @@ jobs: - name: Install prerequisite Linux packages if: runner.os == 'Linux' run: | + # required for "apt-get build-dep" to work + sudo sed --in-place -E 's/# (deb-src.*updates main)/ \1/g' /etc/apt/sources.list sudo apt-get --quiet=2 update - sudo apt-get --quiet=2 install libtool-bin - sudo apt-get --quiet=2 install libcppunit-dev - # TODO: Add some deb-src URI to sources.list and do build-dep - # instead of the above installs? - # sudo apt-get --quiet=2 build-dep squid + sudo apt-get --quiet=2 build-dep squid - name: Checkout sources uses: actions/checkout@v3