11
11
jobs :
12
12
linux :
13
13
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
17
20
strategy :
18
21
fail-fast : false # we don't want to cancel building binaries for other targets just because one fails
19
22
matrix :
28
31
steps :
29
32
- name : Install dependencies
30
33
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
34
37
- name : Checkout
35
38
uses : actions/checkout@v4
36
39
- name : Install Rust
@@ -51,13 +54,13 @@ jobs:
51
54
52
55
- name : Install aarch64-unknown-linux-gnu linker
53
56
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
55
58
- name : Install armv7-unknown-linux-gnueabihf linker
56
59
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
58
61
- name : Install musl gcc
59
62
if : ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
60
- run : sudo apt install -y musl-tools
63
+ run : apt install -y musl-tools
61
64
62
65
- name : Build
63
66
run : |
0 commit comments