]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CI: Install all known dependencies for test-builds.sh on GitHub (#1162)
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 17 Oct 2022 17:27:07 +0000 (17:27 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 17 Oct 2022 20:42:32 +0000 (20:42 +0000)
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 <rousskov@measurement-factory.com>
.github/workflows/default.yaml

index 8e69cf0ab918b9cfa8fca4658fe13e4262ad703b..9cb5886caacd5bcd914e275f72bae5569bdac44e 100644 (file)
@@ -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