ci: source cargo env and add rustfmt+clippy

This commit is contained in:
2026-03-09 23:38:03 -07:00
parent 18b7a8f5de
commit 8e3dcb735e
+3 -3
View File
@@ -18,8 +18,8 @@ jobs:
- name: Setup Rust with rustfmt and clippy - name: Setup Rust with rustfmt and clippy
run: | run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default 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"
$HOME/.cargo/bin/rustup component add rustfmt clippy rustup component add rustfmt clippy
- name: Build - name: Build
run: cargo build --release run: cargo build --release
@@ -44,7 +44,7 @@ jobs:
- name: Setup Rust - name: Setup Rust
run: | run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default 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 - name: Build release binary
run: cargo build --release run: cargo build --release