Skip to content

Commit 9f94333

Browse files
committed
GitHub actions: Do not unnecessarily install recommended packages
There is no need to install further packages beyond the ones explicitly requested (or their dependencies) for our build steps. This fixes the current build failure of Xen-build GitHub action, but also reduces the time GitHub actions will take by a few seconds.
1 parent b1521c9 commit 9f94333

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/build-and-test-Xen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
# user input
1818
DEBIAN_FRONTEND: noninteractive
1919
run: |
20-
sudo apt-get install -y coreutils build-essential gcc git make flex bison software-properties-common libwww-perl python
21-
sudo apt-get install -y bin86 gdb bcc liblzma-dev python-dev gettext iasl uuid-dev libncurses5-dev libncursesw5-dev pkg-config
22-
sudo apt-get install -y libgtk2.0-dev libyajl-dev sudo time
20+
sudo apt-get install --no-install-recommends -y coreutils build-essential gcc git make flex bison software-properties-common libwww-perl python
21+
sudo apt-get install --no-install-recommends -y bin86 gdb bcc liblzma-dev python-dev gettext iasl uuid-dev libncurses5-dev libncursesw5-dev pkg-config
22+
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev sudo time
2323
2424
- name: Build CBMC tools
2525
run: |

.github/workflows/doxygen-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
# user input
1515
DEBIAN_FRONTEND: noninteractive
1616
run: |
17-
sudo apt-get install -yq doxygen graphviz
17+
sudo apt-get install --no-install-recommends -yq doxygen graphviz
1818
- name: Run Doxygen
1919
run: ./scripts/run_doxygen.sh

.github/workflows/pull-request-checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# user input
1717
DEBIAN_FRONTEND: noninteractive
1818
run: |
19-
sudo apt-get install -yq gcc gdb g++ maven jq flex bison libxml2-utils ccache
19+
sudo apt-get install --no-install-recommends -yq gcc gdb g++ maven jq flex bison libxml2-utils ccache
2020
make -C src minisat2-download
2121
- name: Prepare ccache
2222
uses: actions/cache@v2
@@ -66,7 +66,7 @@ jobs:
6666
# user input
6767
DEBIAN_FRONTEND: noninteractive
6868
run: |
69-
sudo apt-get install -yq cmake ninja-build gcc g++ maven flex bison libxml2-utils dpkg-dev ccache
69+
sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc g++ maven flex bison libxml2-utils dpkg-dev ccache
7070
- name: Prepare ccache
7171
uses: actions/cache@v2
7272
with:
@@ -224,7 +224,7 @@ jobs:
224224
# user input
225225
DEBIAN_FRONTEND: noninteractive
226226
run: |
227-
sudo apt-get install -yq clang-format-7
227+
sudo apt-get install --no-install-recommends -yq clang-format-7
228228
- name: Check updated lines of code match clang-format-7 style
229229
env:
230230
BASE_BRANCH: ${{ github.base_ref }}
@@ -305,7 +305,7 @@ jobs:
305305
with:
306306
submodules: recursive
307307
- name: Fetch dependencies
308-
run: sudo apt install g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
308+
run: sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
309309
- name: Prepare ccache
310310
uses: actions/cache@v2
311311
with:

.github/workflows/release-packages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
submodules: recursive
1515
- name: Fetch dependencies
16-
run: sudo apt install g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
16+
run: sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
1717
- name: Prepare ccache
1818
uses: actions/cache@v2
1919
with:
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
submodules: recursive
7171
- name: Fetch dependencies
72-
run: sudo apt install g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
72+
run: sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
7373
- name: Prepare ccache
7474
uses: actions/cache@v2
7575
with:

0 commit comments

Comments
 (0)