File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 3434 - os : ubuntu-20.04
3535 target : x86_64-unknown-linux-gnu
3636 code-target : linux-x64
37+ container : ubuntu:18.04
3738 - os : ubuntu-20.04
3839 target : aarch64-unknown-linux-gnu
3940 code-target : linux-arm64
4950
5051 name : dist (${{ matrix.target }})
5152 runs-on : ${{ matrix.os }}
53+ container : ${{ matrix.container }}
5254
5355 env :
5456 RA_TARGET : ${{ matrix.target }}
@@ -59,19 +61,25 @@ jobs:
5961 with :
6062 fetch-depth : ${{ env.FETCH_DEPTH }}
6163
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+
6268 - 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
6775
6876 - name : Install Node.js
6977 uses : actions/setup-node@v1
7078 with :
7179 node-version : 16.x
7280
7381 - 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') "
7583 run : sudo apt-get update
7684
7785 - name : Install AArch64 target toolchain
You can’t perform that action at this time.
0 commit comments