-
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (55 loc) · 1.49 KB
/
Copy pathbuild.yml
File metadata and controls
77 lines (55 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build
on:
workflow_call:
permissions:
contents: read
jobs:
cli:
name: CLI
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
name: Checkout Code
- uses: dtolnay/rust-toolchain@stable
name: Install Rust Toolchain
- uses: Swatinem/rust-cache@v2
name: Cache Cargo
- run: cargo build --release --locked
name: Build Release Binary
env:
CARGO_BUILD_JOBS: 4
- run: cargo run --release --bin gitfleet -- --help
name: Test CLI Help
- run: cargo run --release --bin gitfleet -- version
name: Test CLI Version
site:
name: Site
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: gitfleet-site
steps:
- uses: actions/checkout@v7
name: Checkout Code
- uses: pnpm/action-setup@v6
name: Install pnpm
with:
package_json_file: gitfleet-site/package.json
run_install: false
- uses: actions/setup-node@v7
name: Install Node.js
with:
node-version: "24"
cache: pnpm
cache-dependency-path: gitfleet-site/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
name: Install Dependencies
- run: pnpm build
name: Build Static Site
env:
ASTRO_TELEMETRY_DISABLED: "1"