This commit is contained in:
1 parent
c45e2bc807
commit
d2c6c67bac
1 file changed
+13
-6
@@ -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
|
||||
Reference in new issue
Block a user