-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
70 lines (68 loc) · 2.13 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
services:
builder-linux:
build:
context: .
dockerfile: Dockerfile
image: gitpow-builder-linux:latest
volumes:
- .:/gitpow
- cargo-cache-linux:/root/.cargo
- rustup-cache-linux:/root/.rustup
- ./build-output/linux:/output
environment:
- CARGO_HOME=/root/.cargo
- RUSTUP_HOME=/root/.rustup
- PATH=/root/.cargo/bin:/root/.nvm/versions/node/v24.0.0/bin:/usr/bin:/bin:${PATH}
command:
- /bin/bash
- -c
- |
cd /gitpow
rustup target add wasm32-unknown-unknown
cd graph-wasm
wasm-pack build --target web
cd ..
mkdir -p static/graph-wasm/pkg
cp -r graph-wasm/pkg/* static/graph-wasm/pkg/
cargo tauri build
mkdir -p /output
cp target/release/gitpow-tauri /output/ 2>/dev/null || true
echo 'Linux build complete!'
builder-windows:
build:
context: .
dockerfile: Dockerfile.windows
image: gitpow-builder-windows:latest
volumes:
- .:/gitpow
- cargo-cache-windows:/root/.cargo
- rustup-cache-windows:/root/.rustup
- ./build-output/windows:/output
environment:
- CARGO_HOME=/root/.cargo
- RUSTUP_HOME=/root/.rustup
- PATH=/root/.cargo/bin:/root/.nvm/versions/node/v24.0.0/bin:/usr/bin:/bin:${PATH}
- CC_x86_64_pc_windows_gnu=x86_64-w64-mingw32-gcc
- CXX_x86_64_pc_windows_gnu=x86_64-w64-mingw32-g++
- AR_x86_64_pc_windows_gnu=x86_64-w64-mingw32-ar
- CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc
command:
- /bin/bash
- -c
- |
cd /gitpow
rustup target add wasm32-unknown-unknown
cd graph-wasm
wasm-pack build --target web
cd ..
mkdir -p static/graph-wasm/pkg
cp -r graph-wasm/pkg/* static/graph-wasm/pkg/
cargo tauri build --target x86_64-pc-windows-gnu
mkdir -p /output
cp target/x86_64-pc-windows-gnu/release/gitpow-tauri.exe /output/ 2>/dev/null || true
echo 'Windows build complete!'
volumes:
cargo-cache-linux:
rustup-cache-linux:
cargo-cache-windows:
rustup-cache-windows: