Public Access
ci: replace setup-rust-toolchain action with direct rustup install
This commit is contained in:
+8
-10
@@ -15,13 +15,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install rustfmt and clippy
|
||||
run: rustup component add rustfmt clippy
|
||||
- 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
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
@@ -44,9 +42,9 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
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
|
||||
|
||||
- name: Build release binary
|
||||
run: cargo build --release
|
||||
|
||||
Reference in New Issue
Block a user