Public Access
ci: source cargo env and add rustfmt+clippy
This commit is contained in:
@@ -18,8 +18,8 @@ jobs:
|
||||
- name: Setup Rust with rustfmt and clippy
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
$HOME/.cargo/bin/rustup component add rustfmt clippy
|
||||
source "$HOME/.cargo/env"
|
||||
rustup component add rustfmt clippy
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Setup Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
source "$HOME/.cargo/env"
|
||||
|
||||
- name: Build release binary
|
||||
run: cargo build --release
|
||||
|
||||
Reference in New Issue
Block a user