Skip to content

Commit 54fe5b7

Browse files
use ubuntu 18.04 container for release
1 parent b7e8b9a commit 54fe5b7

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
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
@@ -49,6 +50,7 @@ jobs:
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

0 commit comments

Comments
 (0)