Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 13 additions & 18 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,28 @@ jobs:

strategy:
matrix:
rust: [stable, 1.89.0]
rust: [stable, 1.92.0]

steps:
- uses: actions/checkout@v4

- name: install rust
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
components: rustfmt, clippy
toolchain: ${{ matrix.rust }}

- name: Check Formatting
run: |
cd squeezenet-burn
cargo fmt --all -- --check
- name: Cache cargo registry and target
uses: Swatinem/rust-cache@v2

- name: Run Clippy
run: |
cd squeezenet-burn
cargo clippy -- -D warnings
- name: Check formatting
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy --workspace --all-targets --locked -- -D warnings

- name: Build
run: |
cd squeezenet-burn
cargo build --verbose

- name: Run tests
run: |
cd squeezenet-burn
cargo test --verbose
run: cargo build --workspace --all-targets --locked --verbose

- name: Test
run: cargo test --workspace --locked --verbose
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
# Remove C# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
Expand Down
Loading
Loading