|
| 1 | +# rnr task definitions for rnr.cli development |
| 2 | +# Run ./rnr --list to see available tasks |
| 3 | + |
| 4 | +# Code formatting |
| 5 | +fmt: |
| 6 | + description: Format code with rustfmt |
| 7 | + cmd: cargo fmt |
| 8 | + |
| 9 | +# Linting |
| 10 | +clippy: |
| 11 | + description: Run clippy lints |
| 12 | + cmd: cargo clippy -- -D warnings |
| 13 | + |
| 14 | +# Testing |
| 15 | +test: |
| 16 | + description: Run all tests |
| 17 | + cmd: cargo test |
| 18 | + |
| 19 | +# Full validation (run before commits) |
| 20 | +check: |
| 21 | + description: Run fmt, clippy, and tests |
| 22 | + steps: |
| 23 | + - task: fmt |
| 24 | + - task: clippy |
| 25 | + - task: test |
| 26 | + |
| 27 | +# Build |
| 28 | +build: |
| 29 | + description: Build release binary |
| 30 | + cmd: cargo build --release |
| 31 | + |
| 32 | +# Dogfooding - build and update local rnr binary |
| 33 | +# Use the task matching your platform, or dogfood-all for all platforms |
| 34 | +dogfood-windows-amd64: |
| 35 | + description: Build and install to .rnr/bin (Windows x64) |
| 36 | + cmd: cargo build --release && copy /Y target\release\rnr.exe .rnr\bin\rnr-windows-amd64.exe |
| 37 | + |
| 38 | +dogfood-windows-arm64: |
| 39 | + description: Build and install to .rnr/bin (Windows ARM64) |
| 40 | + cmd: cargo build --release && copy /Y target\release\rnr.exe .rnr\bin\rnr-windows-arm64.exe |
| 41 | + |
| 42 | +dogfood-linux-amd64: |
| 43 | + description: Build and install to .rnr/bin (Linux x64) |
| 44 | + cmd: cargo build --release && cp target/release/rnr .rnr/bin/rnr-linux-amd64 |
| 45 | + |
| 46 | +dogfood-macos-amd64: |
| 47 | + description: Build and install to .rnr/bin (macOS x64) |
| 48 | + cmd: cargo build --release && cp target/release/rnr .rnr/bin/rnr-macos-amd64 |
| 49 | + |
| 50 | +dogfood-macos-arm64: |
| 51 | + description: Build and install to .rnr/bin (macOS ARM64) |
| 52 | + cmd: cargo build --release && cp target/release/rnr .rnr/bin/rnr-macos-arm64 |
| 53 | + |
| 54 | +# Build and install for all configured platforms |
| 55 | +dogfood-all: |
| 56 | + description: Build and install to .rnr/bin for all platforms |
| 57 | + steps: |
| 58 | + - task: dogfood-windows-amd64 |
| 59 | + - task: dogfood-windows-arm64 |
| 60 | + - task: dogfood-linux-amd64 |
| 61 | + - task: dogfood-macos-amd64 |
| 62 | + - task: dogfood-macos-arm64 |
0 commit comments