11project_name : cc-monorepo
2- version : 4
2+ version : 5
33langs :
44 - rust
55targets :
@@ -18,20 +18,7 @@ cache_files:
1818 - .git
1919 - Cargo.lock
2020 - target
21- artifacts :
22- - target/x86_64-unknown-linux-gnu/release/cc-static-server
23- - cc-static-server/static-server.yaml
24- - target/x86_64-unknown-linux-gnu/doc
2521variables : []
26- place_artifacts_into_project_root :
27- - from : target/x86_64-unknown-linux-gnu/release/cc-static-server
28- to : static-server/cc-static-server
29- - from : cc-static-server/static-server.yaml
30- to : static-server/static-server.yaml
31- - from : cc-error-pages/dist
32- to : cc-error-pages/dist
33- - from : target/x86_64-unknown-linux-gnu/doc
34- to : docs
3522pipelines :
3623 - title : common-ops
3724 desc : Common monorepo operations
@@ -41,9 +28,11 @@ pipelines:
4128 - clippy
4229 - lint
4330 default : true
31+ artifacts :
32+ - from : target/x86_64-unknown-linux-gnu/doc
33+ to : docs
4434 actions :
4535 - title : Lint `cc-utils` on x86-64
46- desc : Получено из `Cargo Clippy`.
4736 info : cargo-clippy@0.1.0
4837 tags :
4938 - cargo
@@ -56,7 +45,6 @@ pipelines:
5645 commands :
5746 - bash_c : RUSTFLAGS='--cfg reqwest_unstable' cargo clippy --package cc-utils --target x86_64-unknown-linux-gnu
5847 - title : Lint `cc-utils` on wasm32
59- desc : Получено из `Cargo Clippy`.
6048 info : cargo-clippy@0.1.0
6149 tags :
6250 - cargo
@@ -69,7 +57,6 @@ pipelines:
6957 commands :
7058 - bash_c : RUSTFLAGS='--cfg reqwest_unstable' cargo clippy --package cc-utils --target wasm32-unknown-unknown --no-default-features --features=reqwest
7159 - title : Lint `cc-ui-kit`
72- desc : Получено из `Cargo Clippy`.
7360 info : cargo-clippy@0.1.0
7461 tags :
7562 - cargo
@@ -82,7 +69,6 @@ pipelines:
8269 commands :
8370 - bash_c : cargo clippy --package cc-ui-kit --target wasm32-unknown-unknown
8471 - title : Lint `cc-error-pages`
85- desc : Получено из `Cargo Clippy`.
8672 info : cargo-clippy@0.1.0
8773 tags :
8874 - cargo
@@ -95,7 +81,6 @@ pipelines:
9581 commands :
9682 - bash_c : cargo clippy --package cc-error-pages --target wasm32-unknown-unknown
9783 - title : Lint `cc-server-kit`
98- desc : Получено из `Cargo Clippy`.
9984 info : cargo-clippy@0.1.0
10085 tags :
10186 - cargo
@@ -108,7 +93,6 @@ pipelines:
10893 commands :
10994 - bash_c : RUSTFLAGS='--cfg reqwest_unstable' cargo clippy --package cc-server-kit --target x86_64-unknown-linux-gnu
11095 - title : Lint `cc-server-kit-dsl`
111- desc : Получено из `Cargo Clippy`.
11296 info : cargo-clippy@0.1.0
11397 tags :
11498 - cargo
@@ -121,7 +105,6 @@ pipelines:
121105 commands :
122106 - bash_c : cargo clippy --package skdsl --target x86_64-unknown-linux-gnu
123107 - title : Lint `cc-static-server`
124- desc : Получено из `Cargo Clippy`.
125108 info : cargo-clippy@0.1.0
126109 tags :
127110 - cargo
@@ -134,7 +117,6 @@ pipelines:
134117 commands :
135118 - bash_c : cargo clippy --package cc-static-server --target x86_64-unknown-linux-gnu
136119 - title : Format
137- desc : Получено из `Format `.rs` files`.
138120 info : cargo-fmt@0.1.0
139121 tags : []
140122 exec_in_project_dir : true
@@ -145,7 +127,6 @@ pipelines:
145127 commands :
146128 - bash_c : cargo fmt -- --config tab_spaces=2,max_width=120 */**/*.rs
147129 - title : Test docs
148- desc : ' '
149130 info : cargo-doc@0.1.0
150131 tags :
151132 - cargo
@@ -158,7 +139,6 @@ pipelines:
158139 commands :
159140 - bash_c : cargo test --doc
160141 - title : Generate docs
161- desc : ' '
162142 info : cargo-doc@0.1.0
163143 tags :
164144 - cargo
@@ -178,17 +158,20 @@ pipelines:
178158 - clippy
179159 - lint
180160 default : true
161+ artifacts :
162+ - from : target/x86_64-unknown-linux-gnu/release/cc-static-server
163+ to : static-server/cc-static-server
164+ - from : cc-static-server/static-server.yaml
165+ to : static-server/static-server.yaml
181166 actions :
182167 - title : Sync script to know Rust package version
183- desc : " "
184168 info : sync-rust-crate-ver@0.1.0
185169 tags : []
186170 exec_in_project_dir : false
187171 action :
188172 type : use_from_storage
189173 content_info : get-know-rust-package-version@latest
190174 - title : Cargo Build (Release)
191- desc : Build the Rust project with Cargo default settings in release mode
192175 info : cargo-rel@0.1.0
193176 tags :
194177 - rust
@@ -206,7 +189,6 @@ pipelines:
206189 show_success_output : false
207190 show_bash_c : true
208191 - title : UPX Compress
209- desc : Compress the binary with UPX.
210192 info : upx-compress@0.1.0
211193 tags :
212194 - upx
@@ -242,7 +224,6 @@ pipelines:
242224 type : plain
243225 value : target/x86_64-unknown-linux-gnu/release/cc-static-server
244226 - title : Auto-upload CC Static Server to Deployer's Storage
245- desc : " "
246227 info : auto-upload-static-server@0.1.0
247228 tags : []
248229 exec_in_project_dir : false
@@ -275,9 +256,11 @@ pipelines:
275256 - wasm
276257 - web
277258 default : true
259+ artifacts :
260+ - from : cc-error-pages/dist
261+ to : cc-error-pages/dist
278262 actions :
279263 - title : Format `leptos` macroses
280- desc : Format Leptos `.rs` files
281264 info : leptos-fmt@0.1.0
282265 tags :
283266 - rust
@@ -298,7 +281,6 @@ pipelines:
298281 show_bash_c : true
299282 only_when_fresh : false
300283 - title : Format Rust code
301- desc : Format `.rs` files
302284 info : cargo-fmt@0.1.0
303285 tags :
304286 - rust
@@ -316,7 +298,6 @@ pipelines:
316298 show_bash_c : true
317299 only_when_fresh : false
318300 - title : Compile Tailwind Styles
319- desc : Получено из `Compile Tailwind Styles`. Compile application style classes with `tailwindcss` JS util.
320301 info : tailwind-css@0.1.0
321302 tags :
322303 - rust
@@ -334,7 +315,6 @@ pipelines:
334315 show_bash_c : true
335316 only_when_fresh : false
336317 - title : Trunk Build
337- desc : Получено из `Trunk Build`. Build WASM application with `trunk` in release mode.
338318 info : trunk-release@0.1.0
339319 tags :
340320 - cargo
@@ -351,13 +331,16 @@ pipelines:
351331 supported_langs :
352332 - rust
353333 commands :
354- - bash_c : trunk build --release --config cc-error-pages/Trunk.toml
334+ - bash_c : >
335+ RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none"
336+ CARGO_UNSTABLE_BUILD_STD="std,panic_abort"
337+ CARGO_UNSTABLE_BUILD_STD_FEATURES="optimize_for_size,panic_immediate_abort"
338+ trunk build --release --config cc-error-pages/Trunk.toml
355339 ignore_fails: false
356340 show_success_output: false
357341 show_bash_c: true
358342 only_when_fresh: false
359343 - title : Optimize WASM
360- desc : Run `wasm-opt` with `-Oz` argument inside `dist` folder
361344 info : wasm-opt@0.1.0
362345 tags :
363346 - wasm
@@ -371,7 +354,7 @@ pipelines:
371354 supported_langs :
372355 - rust
373356 commands :
374- - bash_c : wasm-opt -Oz --all-features -o {file} {file}
357+ - bash_c : wasm-opt -Oz --all-features --strip-debug - o {file} {file}
375358 ignore_fails : false
376359 show_success_output : false
377360 show_bash_c : true
@@ -388,7 +371,6 @@ pipelines:
388371 type : plain
389372 value : cc-error-pages/dist/cc-error-pages_bg.wasm
390373 - title : Add `tailwind.css` from `public` to `dist`
391- desc : " "
392374 info : add-tailwind-css-to-dist-folder@0.1.0
393375 tags : []
394376 exec_in_project_dir : false
@@ -403,7 +385,6 @@ pipelines:
403385 show_bash_c : true
404386 only_when_fresh : false
405387 - title : Add `favicon.ico` from `public` to `dist`
406- desc : " "
407388 info : add-favicon-to-dist-folder@0.1.0
408389 tags : []
409390 exec_in_project_dir : false
@@ -425,6 +406,9 @@ pipelines:
425406 - clippy
426407 - lint
427408 default : true
409+ artifacts :
410+ - from : target/x86_64-unknown-linux-gnu/release/skdsl
411+ to : skdsl
428412 actions :
429413 - title : Lint
430414 info : cargo-clippy@0.1.0
@@ -456,7 +440,6 @@ pipelines:
456440 commands :
457441 - bash_c : cd cc-server-kit-dsl && cargo fmt -- --config tab_spaces=2,max_width=120 */**/*.rs
458442 - title : Cargo Build (Release)
459- desc : Build the Rust project with Cargo default settings in release mode
460443 info : cargo-rel@0.1.0
461444 tags :
462445 - rust
@@ -474,7 +457,6 @@ pipelines:
474457 show_success_output : false
475458 show_bash_c : true
476459 - title : UPX Compress
477- desc : Compress the binary with UPX.
478460 info : upx-compress@0.1.0
479461 tags :
480462 - upx
@@ -540,7 +522,10 @@ pipelines:
540522 info : cc-services-skdsl-debug@0.1.0
541523 tags :
542524 - cargo
543- default : true
525+ default : false
526+ artifacts :
527+ - from : target/x86_64-unknown-linux-gnu/debug/skdsl
528+ to : skdsl-debug
544529 actions :
545530 - title : Lint
546531 info : cargo-clippy@0.1.0
@@ -559,7 +544,6 @@ pipelines:
559544 commands :
560545 - bash_c : cargo clippy --package skdsl --target x86_64-unknown-linux-gnu
561546 - title : Cargo Build
562- desc : Build the Rust project with Cargo default settings in release mode
563547 info : cargo-build@0.1.0
564548 tags :
565549 - rust
0 commit comments