Skip to content

Commit d0d4fdd

Browse files
committed
CI: Consistently use apt-get install -U
Shorter than `apt-get update && apt-get install`, and fixes one place where we forgot to do that.
1 parent 42f426f commit d0d4fdd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ jobs:
224224
with:
225225
submodules: recursive
226226

227-
- run: sudo apt-get update && sudo apt-get install gcc-multilib g++-multilib
227+
- run: sudo apt-get install -U gcc-multilib g++-multilib
228228

229229
- name: Install protoc
230230
run: ./bin/install_protoc_linux

.github/workflows/jni_artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115

116116
- run: rustup toolchain install "$(cat rust-toolchain)" --profile minimal
117117

118-
- run: sudo apt-get update && sudo apt-get install protobuf-compiler
118+
- run: sudo apt-get install -U protobuf-compiler
119119

120120
- run: cargo +stable install --version "$(cat .cbindgen-version)" --locked cbindgen
121121

.github/workflows/lints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2020
with:
2121
submodules: recursive
22-
- run: sudo apt-get update && sudo apt-get install python3-flake8 python3-flake8-comprehensions python3-flake8-deprecated python3-flake8-import-order python3-flake8-quotes python3-mypy
22+
- run: sudo apt-get install -U python3-flake8 python3-flake8-comprehensions python3-flake8-deprecated python3-flake8-import-order python3-flake8-quotes python3-mypy
2323
- run: |
2424
shopt -s globstar
2525
shellcheck -- **/*.sh bin/verify_duplicate_crates bin/adb-run-test

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151

152152
- run: rustup toolchain install "$(cat rust-toolchain)" --profile minimal
153153

154-
- run: sudo apt-get update && sudo apt-get install protobuf-compiler
154+
- run: sudo apt-get install -U protobuf-compiler
155155

156156
- name: Verify that the Node bindings are up to date
157157
run: rust/bridge/node/bin/gen_ts_decl.py --verify

.github/workflows/slow_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
if: ${{ github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && inputs.ignore_kt_tests == true) }}
140140
run: echo "LIBSIGNAL_TESTING_IGNORE_KT_TESTS=true" >> "$GITHUB_ENV"
141141

142-
- run: sudo apt-get install protobuf-compiler
142+
- run: sudo apt-get install -U protobuf-compiler
143143

144144
- run: ./gradlew :client:test :server:test -PskipAndroid -PjniTypeTagging -PjniCheckAnnotations
145145
working-directory: java
@@ -258,7 +258,7 @@ jobs:
258258
if: ${{ github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && inputs.ignore_kt_tests == true) }}
259259
run: echo "LIBSIGNAL_TESTING_IGNORE_KT_TESTS=true" >> "$GITHUB_ENV"
260260

261-
- run: sudo apt-get update && sudo apt-get install protobuf-compiler
261+
- run: sudo apt-get install -U protobuf-compiler
262262

263263
- run: rustup toolchain install "$(cat rust-toolchain)" --profile minimal
264264

@@ -433,7 +433,7 @@ jobs:
433433
if: ${{ github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && inputs.ignore_kt_tests == true) }}
434434
run: echo "LIBSIGNAL_TESTING_IGNORE_KT_TESTS=true" >> "$GITHUB_ENV"
435435

436-
- run: sudo apt-get update && sudo apt-get install gcc-multilib g++-multilib protobuf-compiler
436+
- run: sudo apt-get install -U gcc-multilib g++-multilib protobuf-compiler
437437

438438
- run: rustup +stable target add i686-unknown-linux-gnu
439439

@@ -507,7 +507,7 @@ jobs:
507507
with:
508508
submodules: recursive
509509

510-
- run: sudo apt-get update && sudo apt-get install protobuf-compiler
510+
- run: sudo apt-get install -U protobuf-compiler
511511

512512
- run: rustup toolchain install "$(cat rust-toolchain)" --profile minimal
513513

0 commit comments

Comments
 (0)