-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.gitlab-ci.yml
118 lines (108 loc) · 2.85 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
106
107
108
109
110
111
112
113
114
115
116
117
118
stages:
- test
- pages
- deploy
cpu-test:
image: $CI_REGISTRY/ricos/truck/truck/cpu-test:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- cargo make ci-cpu-test
cpu-nightly-test:
image: $CI_REGISTRY/ricos/truck/truck/cpu-test:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- cargo make ci-cpu-nightly-test
meshalgo-features-buildcheck:
image: rust:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- cd truck-meshalgo
- cargo check --no-default-features --features analyzers
- cargo check --no-default-features --features filters
- cargo check --no-default-features --features tessellation
gpu-test:
image: $CI_REGISTRY/ricos/truck/truck/gpu-test:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- cargo make ci-gpu-test
tags:
- gpu
artifacts:
paths:
- images
wasm-test:
image: $CI_REGISTRY/ricos/truck/truck/wasm-test:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- deno lint
- cargo make wasm-test
page-build:
image: $CI_REGISTRY/ricos/truck/truck/wasm-test:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- mkdir public
- cargo make page-build
- mv truck-js/pkg public/adhoc-viewer
- mv dist public/webgpu-examples
artifacts:
paths:
- public
lint-check:
image: rust:latest
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- rustup component add clippy
- cargo clippy
- rustup default nightly
- rustup component add rustfmt
- cargo fmt -- --check
change-log:
image: ubuntu:latest
stage: test
variables:
GIT_STRATEGY: clone
before_script:
- sed -i.bak -e "s%http://archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list
- sed -i.bak -e "s%http://security.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list
- apt-get update && apt-get install git -y
- git fetch
script:
- bash -c "! git diff --exit-code origin/master CHANGELOG.md"
except:
- master
- tags
readme-generator:
image: $CI_REGISTRY/ricos/truck/truck/cpu-test:latest
stage: test
variables:
GIT_STRATEGY: clone
script:
- cargo run --bin readme-generator
- git diff --exit-code
except:
- tags
pages:
image: rust:latest
stage: pages
script:
- cargo doc --no-deps
- mv target/doc public/doc
artifacts:
paths:
- public
only:
- master