diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 60646e3..aaea1a4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,15 +20,22 @@ jobs: steps: # - uses: actions/checkout@v4 - - name: install cargo - run: apt update -y && apt install rustup -y - name: Install Rust - run: rustup toolchain install stable --profile minimal + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ + | sh -s -- -y --profile minimal --default-toolchain stable --component clippy + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + "$HOME/.cargo/bin/rustup" show + "$HOME/.cargo/bin/cargo" --version + - name: Check out code uses: actions/checkout@v4 + - name: Build - run: cargo build --verbose --all-features + run: cargo +stable build --verbose --all-features + - name: Run clippy - run: cargo clippy --verbose --all-features + run: cargo +stable clippy --verbose --all-features + - name: Run tests - run: cargo test --verbose --all-features + run: cargo +stable test --verbose --all-features \ No newline at end of file