Add initial implementation of ControlComputation
.
#89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
env: | |
# A fixed version used for testing, so that the builds don't | |
# spontaneously break after a few years. | |
# Make sure to update this from time to time. | |
RUST_VERSION: "1.80.1" | |
## At the moment, everything is running on nightly. Once Rocket 0.5 is out, stable/beta can be enabled. | |
jobs: | |
# Check formatting | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
# Run basic code validity check. | |
check: | |
needs: fmt | |
name: Check | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
- run: cargo check --all-features | |
# Run all tests | |
#test: | |
# needs: check | |
# name: Test Suite | |
# runs-on: ubuntu-latest | |
# env: | |
# RUSTFLAGS: "-D warnings" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: stable | |
# override: true | |
# - uses: actions-rs/cargo@v1 | |
# with: | |
# command: test | |
# args: --features "shields_up" | |
# Run all tests, but with beta | |
#test-beta: | |
# needs: check | |
# name: Test Suite (Beta) | |
# runs-on: ubuntu-latest | |
# env: | |
# RUSTFLAGS: "-D warnings" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: beta | |
# override: true | |
# - uses: actions-rs/cargo@v1 | |
# with: | |
# command: test | |
# args: --features "shields_up" | |
# Run all tests | |
test-nightly: | |
needs: check | |
name: Test Suite | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
components: rustfmt | |
- run: cargo test --all-features | |
# Check code style | |
clippy: | |
needs: check | |
name: Clippy | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
components: clippy | |
- run: cargo clippy --all-features |