diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a82917880..dd171a336d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,23 +8,43 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - - run: cargo fmt --all --check - - run: cargo clippy --workspace --all-targets --locked -- -D warnings - - run: cargo test --workspace --locked + - run: ./dev/check - run: python3 -m pip install -r dev/requirements-test.txt - - run: python3 dev/differential.py - run: python3 -m unittest discover -s dev -p 'test_*.py' - run: sudo apt-get update && sudo apt-get install -y qemu-system-x86 clang - run: python3 dev/vm.py smoke - run: | python3 -c 'import struct; from pathlib import Path; Path(".stela/leaf.arm64").write_bytes(struct.pack("&2; exit 2 ;; + esac + ;; + *) usage >&2; exit 2 ;; +esac +cd "$root" +if [ "$fix" = true ]; then + ./dev/cargo fmt --all +fi +./dev/cargo fmt --all -- --check +./dev/cargo clippy --workspace --all-targets --locked -- -D warnings +./dev/cargo test --workspace --locked diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000000..f216078d96 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2024"