Skip to content

Commit c38d120

Browse files
Merge pull request #4 from triblespace/codex/add-and-adapt-scripts-folder-to-repo
Add scripts folder
2 parents e10abf3 + 7522131 commit c38d120

File tree

4 files changed

+43
-24
lines changed

4 files changed

+43
-24
lines changed

.github/workflows/preflight.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Preflight
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
preflight:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Run preflight script
14+
run: ./scripts/preflight.sh

.github/workflows/rust.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

scripts/devtest.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Move to repository root
5+
cd "$(dirname "$0")/.."
6+
7+
# Run only the tests for quick iteration
8+
cargo test --all-features

scripts/preflight.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Move to repository root
5+
cd "$(dirname "$0")/.."
6+
7+
# Ensure required tools are available
8+
if ! command -v rustfmt >/dev/null 2>&1; then
9+
echo "rustfmt not found. Installing via rustup..."
10+
rustup component add rustfmt
11+
fi
12+
13+
if ! cargo kani --version >/dev/null 2>&1; then
14+
echo "cargo-kani not found. Installing Kani verifier..."
15+
cargo install --locked kani-verifier
16+
fi
17+
18+
# Run formatting check, tests, and Kani verification
19+
cargo fmt -- --check
20+
cargo test --all-features
21+
cargo kani --workspace --all-features

0 commit comments

Comments
 (0)