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
60 changes: 58 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
test:
name: Test (${{ matrix.os }}, minimal=${{ matrix.minimal }})
name: MSRV (${{ matrix.os }}, minimal=${{ matrix.minimal }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@1.97.0
with:
components: rustfmt, clippy

Expand Down Expand Up @@ -89,3 +89,59 @@ jobs:

- name: Build release
run: make release

stable:
name: Current stable
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler

- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ubuntu-stable-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ubuntu-stable-cargo-registry-

- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ubuntu-stable-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ubuntu-stable-cargo-git-

- name: Cache target directory
uses: actions/cache@v4
with:
path: target
key: ubuntu-stable-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ubuntu-stable-target-

- name: Cache ResNet-50 ONNX model
uses: actions/cache@v4
with:
path: target/test-data
key: resnet50-onnx-opset16-v1

- name: Check formatting
run: make fmt-check

- name: Run clippy
run: make lint

- name: Run tests
run: make test

- name: Build release
run: make release
Loading
Loading