|
1 | 1 | #https://github.com/sagiegurari/cargo-make |
2 | 2 |
|
3 | 3 | extend = [ |
4 | | - { path = "scripts/makefile/desktop.toml" }, |
5 | | - { path = "scripts/makefile/mobile.toml" }, |
6 | | - { path = "scripts/makefile/protobuf.toml" }, |
7 | | - { path = "scripts/makefile/tests.toml" }, |
8 | | - { path = "scripts/makefile/docker.toml" }, |
9 | | - { path = "scripts/makefile/env.toml" }, |
10 | | - { path = "scripts/makefile/flutter.toml" }, |
11 | | - { path = "scripts/makefile/tool.toml" }, |
12 | | - { path = "scripts/makefile/tauri.toml" }, |
13 | | - { path = "scripts/makefile/web.toml" }, |
| 4 | + { path = "scripts/makefile/desktop.toml" }, |
| 5 | + { path = "scripts/makefile/mobile.toml" }, |
| 6 | + { path = "scripts/makefile/protobuf.toml" }, |
| 7 | + { path = "scripts/makefile/tests.toml" }, |
| 8 | + { path = "scripts/makefile/docker.toml" }, |
| 9 | + { path = "scripts/makefile/env.toml" }, |
| 10 | + { path = "scripts/makefile/flutter.toml" }, |
| 11 | + { path = "scripts/makefile/tool.toml" }, |
| 12 | + { path = "scripts/makefile/tauri.toml" }, |
| 13 | + { path = "scripts/makefile/web.toml" }, |
14 | 14 | ] |
15 | 15 |
|
16 | 16 | [config] |
@@ -228,30 +228,31 @@ script = [''' |
228 | 228 | echo APP_ENVIRONMENT: ${APP_ENVIRONMENT} |
229 | 229 | echo BUILD_ARCHS: ${BUILD_ARCHS} |
230 | 230 | echo BUILD_VERSION: ${BUILD_VERSION} |
| 231 | + echo RUST_VERSION: "$(rustc --version)" |
231 | 232 | '''] |
232 | 233 | script_runner = "@shell" |
233 | 234 |
|
234 | 235 | [tasks.setup-crate-type] |
235 | 236 | private = true |
236 | 237 | script = [ |
237 | | - """ |
238 | | - toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
239 | | - val = replace ${toml} "staticlib" ${CRATE_TYPE} |
240 | | - result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
241 | | - assert ${result} |
242 | | - """, |
| 238 | + """ |
| 239 | + toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
| 240 | + val = replace ${toml} "staticlib" ${CRATE_TYPE} |
| 241 | + result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
| 242 | + assert ${result} |
| 243 | + """, |
243 | 244 | ] |
244 | 245 | script_runner = "@duckscript" |
245 | 246 |
|
246 | 247 | [tasks.restore-crate-type] |
247 | 248 | private = true |
248 | 249 | script = [ |
249 | | - """ |
250 | | - toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
251 | | - val = replace ${toml} ${CRATE_TYPE} "staticlib" |
252 | | - result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
253 | | - assert ${result} |
254 | | - """, |
| 250 | + """ |
| 251 | + toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
| 252 | + val = replace ${toml} ${CRATE_TYPE} "staticlib" |
| 253 | + result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
| 254 | + assert ${result} |
| 255 | + """, |
255 | 256 | ] |
256 | 257 | script_runner = "@duckscript" |
257 | 258 |
|
@@ -279,24 +280,24 @@ TEST_COMPILE_TARGET = "x86_64-pc-windows-msvc" |
279 | 280 | [tasks.setup-test-crate-type] |
280 | 281 | private = true |
281 | 282 | script = [ |
282 | | - """ |
283 | | - toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
284 | | - val = replace ${toml} "staticlib" ${TEST_CRATE_TYPE} |
285 | | - result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
286 | | - assert ${result} |
287 | | - """, |
| 283 | + """ |
| 284 | + toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
| 285 | + val = replace ${toml} "staticlib" ${TEST_CRATE_TYPE} |
| 286 | + result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
| 287 | + assert ${result} |
| 288 | + """, |
288 | 289 | ] |
289 | 290 | script_runner = "@duckscript" |
290 | 291 |
|
291 | 292 | [tasks.restore-test-crate-type] |
292 | 293 | private = true |
293 | 294 | script = [ |
294 | | - """ |
295 | | - toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
296 | | - val = replace ${toml} ${TEST_CRATE_TYPE} "staticlib" |
297 | | - result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
298 | | - assert ${result} |
299 | | - """, |
| 295 | + """ |
| 296 | + toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml |
| 297 | + val = replace ${toml} ${TEST_CRATE_TYPE} "staticlib" |
| 298 | + result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val} |
| 299 | + assert ${result} |
| 300 | + """, |
300 | 301 | ] |
301 | 302 | script_runner = "@duckscript" |
302 | 303 |
|
|
0 commit comments