Skip to content

Invert utility max to cost minimization #39

Invert utility max to cost minimization

Invert utility max to cost minimization #39

Workflow file for this run

name: CI workflow
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: Lint & Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install graphviz
run: sudo apt-get update && sudo apt-get install -y graphviz
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose