Skip to content

Commit

Permalink
build:update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
limitcool committed Sep 17, 2024
1 parent c781ab7 commit a3c8552
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install cross (Linux)
if: runner.os == 'Linux'
- name: Install cross (Linux aarch64)
if: runner.os == 'Linux' && matrix.target == 'aarch64-unknown-linux-gnu'
run: cargo install cross
- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
run: choco upgrade openssl.light
- name: Cargo Build
run: |
if [ "${{ runner.os }}" = "Linux" ]; then
if [ "${{ matrix.target }}" ]; then
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
cross build --release --target ${{ matrix.target }}
else
cross build --release
cargo build --release
fi
else
if [ "${{ matrix.target }}" ]; then
Expand Down

0 comments on commit a3c8552

Please sign in to comment.