File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 34
34
- os : ubuntu-20.04
35
35
target : x86_64-unknown-linux-gnu
36
36
code-target : linux-x64
37
+ container : ubuntu:18.04
37
38
- os : ubuntu-20.04
38
39
target : aarch64-unknown-linux-gnu
39
40
code-target : linux-arm64
49
50
50
51
name : dist (${{ matrix.target }})
51
52
runs-on : ${{ matrix.os }}
53
+ container : ${{ matrix.container }}
52
54
53
55
env :
54
56
RA_TARGET : ${{ matrix.target }}
@@ -59,19 +61,25 @@ jobs:
59
61
with :
60
62
fetch-depth : ${{ env.FETCH_DEPTH }}
61
63
64
+ - name : Install toolchain dependencies
65
+ if : matrix.container == 'ubuntu:18.04'
66
+ run : apt-get update && apt-get install -y build-essential curl
67
+
62
68
- name : Install Rust toolchain
63
- run : |
64
- rustup update --no-self-update stable
65
- rustup target add ${{ matrix.target }}
66
- rustup component add rust-src
69
+ uses : actions-rs/toolchain@v1
70
+ with :
71
+ toolchain : stable
72
+ target : ${{ matrix.target }}
73
+ components : rust-src
74
+ override : true
67
75
68
76
- name : Install Node.js
69
77
uses : actions/setup-node@v1
70
78
with :
71
79
node-version : 16.x
72
80
73
81
- name : Update apt repositories
74
- if : matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
82
+ if : " ! matrix.container && (matrix. target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf') "
75
83
run : sudo apt-get update
76
84
77
85
- name : Install AArch64 target toolchain
You can’t perform that action at this time.
0 commit comments