Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 08dc6fc

Browse files
committed
Update release workflow to install rust toolchain
1 parent 5dc93f9 commit 08dc6fc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ jobs:
4545
sudo apt-get update
4646
sudo apt-get install -y pkg-config libssl-dev
4747
48-
- name: Build for non-linux
49-
if: matrix.os != 'ubuntu-latest'
50-
run: cargo build --release --target ${{ matrix.target }}
48+
- name: Install rust toolchain
49+
run: |
50+
rustup target add ${{ matrix.target }}
51+
rustup toolchain install nightly-${{ matrix.target }}
52+
5153
52-
- name: Build for linux
53-
if: matrix.os == 'ubuntu-latest'
54+
- name: Build
5455
run: cargo build --release --target ${{ matrix.target }}
55-
env:
56-
OPENSSL_DIR: /usr/bin/openssl
5756

5857
- name: Upload unix-like binaries to release
5958
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)