Skip to content

Commit 760e88e

Browse files
committed
Remove sudo
1 parent 60b4a79 commit 760e88e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/upload-binaries.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ env:
1111
jobs:
1212
linux:
1313
runs-on: ubuntu-latest
14-
# due to the dynamically linked libgcc, changes here should be communicated in the changelog
15-
# as a change to the minimum OS version requirement
16-
container: ubuntu:20.04
14+
container:
15+
# due to the dynamically linked libgcc,
16+
# changes to the image should be communicated in the changelog
17+
# as a change to the minimum OS version requirement
18+
image: ubuntu:20.04
19+
options: --user root
1720
strategy:
1821
fail-fast: false # we don't want to cancel building binaries for other targets just because one fails
1922
matrix:
@@ -28,9 +31,9 @@ jobs:
2831
steps:
2932
- name: Install dependencies
3033
run: |
31-
sudo apt update
32-
sudo apt install -y gcc-multilib # required to build for 32-bit arch
33-
sudo apt install -y curl # required for Rust installation
34+
apt update
35+
apt install -y gcc-multilib # required to build for 32-bit arch
36+
apt install -y curl # required for Rust installation
3437
- name: Checkout
3538
uses: actions/checkout@v4
3639
- name: Install Rust
@@ -51,13 +54,13 @@ jobs:
5154

5255
- name: Install aarch64-unknown-linux-gnu linker
5356
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
54-
run: sudo apt install -y gcc-aarch64-linux-gnu
57+
run: apt install -y gcc-aarch64-linux-gnu
5558
- name: Install armv7-unknown-linux-gnueabihf linker
5659
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
57-
run: sudo apt install -y gcc-arm-linux-gnueabihf
60+
run: apt install -y gcc-arm-linux-gnueabihf
5861
- name: Install musl gcc
5962
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
60-
run: sudo apt install -y musl-tools
63+
run: apt install -y musl-tools
6164

6265
- name: Build
6366
run: |

0 commit comments

Comments
 (0)