| b64e2537 Andy McCall ↶ |
1 |
.PHONY: build check test fmt clippy run deploy ts |
| d23464c0 Andy McCall ↶ |
2 |
|
| 3 |
build: |
| 4 |
cargo build --release |
| 5 |
|
| 6 |
check: fmt clippy test |
| 7 |
|
| 8 |
fmt: |
| 9 |
cargo fmt --all -- --check |
| 10 |
|
| 11 |
clippy: |
| 12 |
cargo clippy --workspace --all-targets -- -D warnings |
| 13 |
|
| 14 |
test: |
| 15 |
cargo test --workspace |
| 16 |
|
| 17 |
run: |
| 18 |
cargo run -- --data data serve |
| 19 |
|
| b64e2537 Andy McCall ↶ |
20 |
|
| 21 |
ts: |
| 22 |
cargo run -q -p hub-api --bin hub-api-typescript > crates/hub-api/ts/index.d.ts |
| 23 |
|
| d23464c0 Andy McCall ↶ |
24 |
|
| 25 |
deploy: |
| 42fa9554 Andy McCall ↶ |
26 |
rsync -a --delete --exclude target --exclude node_modules --exclude .oxy/objects/loose ../oxygen ../oxygenflow ../oxygenhub claude@earth:src/ |
| d23464c0 Andy McCall ↶ |
27 |
ssh claude@earth 'source ~/.cargo/env && cd src/oxygenhub && cargo build --release && sudo install -m 0755 target/release/oxygenhub /usr/local/bin/oxygenhub && sudo systemctl restart oxygenhub && systemctl is-active oxygenhub' |
| 380996db Andy McCall ↶ |
28 |
|
| 25091e5c Andy McCall ↶ |
29 |
|
| 30 |
|
| 31 |
|
| 380996db Andy McCall ↶ |
32 |
.PHONY: pins |
| 33 |
pins: |
| 25091e5c Andy McCall ↶ |
34 |
cd deps/oxygenflow && OXY_CA=$(HOME)/.config/oxy/earth-ca.pem oxy --plain pull origin && OXY_CA=$(HOME)/.config/oxy/earth-ca.pem oxy --plain submodule update --init |