fix(release): source cargo env (#646)

This commit is contained in:
yetone 2024-09-26 23:59:07 +08:00 committed by GitHub
parent 753b77425b
commit 93abd8e525
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,9 +97,10 @@ jobs:
if: ${{ matrix.config.os_name == 'linux' }}
run: |
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
. "$HOME/.cargo/env"
- name: Build all crates
run: cargo build --release --features ${{ matrix.feature }}
run: |
. "$HOME/.cargo/env"
cargo build --release --features ${{ matrix.feature }}
- name: Handle binaries
if: ${{ matrix.config.os_name != 'windows' }}
shell: bash