-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
105 lines (97 loc) · 2.51 KB
/
.gitlab-ci.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
stages:
- build
build:client:web:
image: fischerscode/flutter:dev
stage: build
script:
- "cd client"
- "flutter doctor -v"
- "flutter build web"
- "cp -r build/web .."
artifacts:
paths:
- "web/*"
expire_in: 1 week
build:client:apk:
image: itachi1706/flutter-alpine-android:dev
stage: build
script:
- "cd client"
- "flutter doctor -v"
- "flutter build apk"
- "cp build/app/outputs/apk/release/app-release.apk ../kiln-controller.apk"
artifacts:
paths:
- "kiln-controller.apk"
expire_in: 1 week
build:client:appbundle:
image: itachi1706/flutter-alpine-android:dev
stage: build
script:
- "cd client"
- "flutter doctor -v"
- "flutter build appbundle"
- "cp build/app/outputs/bundle/release/app-release.aab ../kiln-controller.aab"
artifacts:
paths:
- "kiln-controller.aab"
expire_in: 1 week
build:client:linux:
image: openpriv/flutter-desktop:linux-fdev2.5rc
stage: build
script:
- "cd client"
- "flutter config --enable-linux-desktop"
- "flutter doctor -v"
- "flutter build linux"
- "cp -r build/linux/x64/release/bundle ../linux"
- "mv ../linux/client ../linux/kilncontroller"
artifacts:
paths:
- "linux/*"
expire_in: 1 week
build:client:windows:
stage: build
tags:
- windows
- powershell
- flutter-dev
script:
- "cd client"
- "flutter config --enable-windows-desktop"
- "flutter config --enable-windows-uwp-desktop"
- "flutter doctor -v"
- "flutter build windows"
- 'Copy-Item -Path "build\windows\runner\Release\" -Destination "..\windows" -Recurse'
artifacts:
paths:
- "windows/*"
expire_in: 1 week
build:server:mac:
image: joseluisq/rust-linux-darwin-builder:latest
stage: build
script:
- "cd server"
- "rustc --version && cargo --version"
- "rm -rf target"
- "CC=o64-clang CXX=o64-clang++ cargo build --release --target=x86_64-apple-darwin"
- "cp target/x86_64-apple-darwin/release/{kiln_server,kiln_tools} ../"
artifacts:
paths:
- "kiln_server"
- "kiln_tools"
expire_in: 1 week
build:server:linux:
image: joseluisq/rust-linux-darwin-builder:latest
stage: build
script:
- "cd server"
- "rustc --version && cargo --version"
- "rm -rf target"
- "cargo build --release --target=x86_64-unknown-linux-musl"
- "cp target/x86_64-unknown-linux-musl/release/{kiln_server,kiln_tools} ../"
artifacts:
paths:
- "kiln_server"
- "kiln_tools"
expire_in: 1 week