aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-03-20 22:01:50 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-03-20 22:09:13 -0300
commitff42f7248b4bd83a692f553538bbf9150577af99 (patch)
treec29a34edd9ca2c3e8b25517519ffbe03bfdb4c68 /.github
parentRELNOTES: sort items by date added (diff)
downloadfirejail-ff42f7248b4bd83a692f553538bbf9150577af99.tar.gz
firejail-ff42f7248b4bd83a692f553538bbf9150577af99.tar.zst
firejail-ff42f7248b4bd83a692f553538bbf9150577af99.zip
ci: always update the package db before installing packages
This should fix installing packages on build-extra.yml. Note that this is already done on build.yml and on gitlab-ci.yml. From the GitHub Actions documentation[1] [2]: > Note: Always run `sudo apt-get update` before installing a package. In > case the `apt` index is stale, this command fetches and re-indexes any > available packages, which helps prevent package installation failures. [1] https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners [2] https://github.com/actions/runner-images/issues/2924
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-extra.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
index d1d8d4a17..d5fa4af3c 100644
--- a/.github/workflows/build-extra.yml
+++ b/.github/workflows/build-extra.yml
@@ -61,6 +61,8 @@ jobs:
61 azure.archive.ubuntu.com:80 61 azure.archive.ubuntu.com:80
62 github.com:443 62 github.com:443
63 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f 63 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
64 - name: update package information
65 run: sudo apt-get update
64 - name: install dependencies 66 - name: install dependencies
65 run: sudo apt-get install libapparmor-dev libselinux1-dev 67 run: sudo apt-get install libapparmor-dev libselinux1-dev
66 - name: configure 68 - name: configure
@@ -82,6 +84,8 @@ jobs:
82 azure.archive.ubuntu.com:80 84 azure.archive.ubuntu.com:80
83 github.com:443 85 github.com:443
84 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f 86 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
87 - name: update package information
88 run: sudo apt-get update
85 - name: install clang-tools-14 and dependencies 89 - name: install clang-tools-14 and dependencies
86 run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev 90 run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev
87 - name: configure 91 - name: configure
@@ -99,6 +103,8 @@ jobs:
99 azure.archive.ubuntu.com:80 103 azure.archive.ubuntu.com:80
100 github.com:443 104 github.com:443
101 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f 105 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
106 - name: update package information
107 run: sudo apt-get update
102 - name: install cppcheck 108 - name: install cppcheck
103 run: sudo apt-get install cppcheck 109 run: sudo apt-get install cppcheck
104 - name: cppcheck 110 - name: cppcheck
@@ -116,6 +122,8 @@ jobs:
116 azure.archive.ubuntu.com:80 122 azure.archive.ubuntu.com:80
117 github.com:443 123 github.com:443
118 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f 124 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
125 - name: update package information
126 run: sudo apt-get update
119 - name: install cppcheck 127 - name: install cppcheck
120 run: sudo apt-get install cppcheck 128 run: sudo apt-get install cppcheck
121 - name: cppcheck 129 - name: cppcheck
@@ -131,6 +139,8 @@ jobs:
131 azure.archive.ubuntu.com:80 139 azure.archive.ubuntu.com:80
132 github.com:443 140 github.com:443
133 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f 141 - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
142 - name: update package information
143 run: sudo apt-get update
134 - name: install dependencies 144 - name: install dependencies
135 run: sudo apt-get install codespell 145 run: sudo apt-get install codespell
136 - name: codespell 146 - name: codespell