Skip to content

Commit 1acaa67

Browse files
committed
malloc test(arm musl windows etc)
arm jemalloc(including musl) aarch64 windows snmalloc test x86_64 windows mimalloc-rs
1 parent 630a28b commit 1acaa67

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.github/setup.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,38 @@
8080
case "${{ join(matrix.targets) }}" in
8181
*arm*linux*musl*)
8282
echo "cargo=cargo" >> $GITHUB_OUTPUT
83-
echo "features=" >> $GITHUB_OUTPUT
83+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
8484
;;
8585
*aarch64*linux*musl*)
8686
echo "cargo=cargo" >> $GITHUB_OUTPUT
87-
echo "features=" >> $GITHUB_OUTPUT
87+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
8888
;;
8989
*linux*musl*)
90-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
90+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
9191
echo "cargo=cargo" >> $GITHUB_OUTPUT
9292
;;
9393
*aarch64*linux*)
94-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
94+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
9595
echo "cargo=cargo" >> $GITHUB_OUTPUT
9696
;;
9797
*arm*linux*)
98-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
98+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
9999
echo "cargo=cargo" >> $GITHUB_OUTPUT
100100
;;
101101
*linux*)
102102
echo "features=use-tcmalloc" >> $GITHUB_OUTPUT
103103
echo "cargo=cargo" >> $GITHUB_OUTPUT
104104
;;
105+
*aarch64*windows*)
106+
echo "features=use-snmalloc" >> $GITHUB_OUTPUT
107+
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
108+
;;
105109
*windows*)
106-
echo "features=" >> $GITHUB_OUTPUT
110+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
107111
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
108112
;;
109113
*)
110-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
114+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
111115
echo "cargo=cargo" >> $GITHUB_OUTPUT
112116
;;
113117
esac

.github/workflows/release.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,41 +207,43 @@ jobs:
207207
case "${{ join(matrix.targets) }}" in
208208
*arm*linux*musl*)
209209
echo "cargo=cargo" >> $GITHUB_OUTPUT
210-
echo "features=" >> $GITHUB_OUTPUT
210+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
211211
;;
212212
*aarch64*linux*musl*)
213213
echo "cargo=cargo" >> $GITHUB_OUTPUT
214-
echo "features=" >> $GITHUB_OUTPUT
214+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
215215
;;
216216
*linux*musl*)
217-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
217+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
218218
echo "cargo=cargo" >> $GITHUB_OUTPUT
219219
;;
220220
*aarch64*linux*)
221-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
221+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
222222
echo "cargo=cargo" >> $GITHUB_OUTPUT
223223
;;
224224
*arm*linux*)
225-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
225+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
226226
echo "cargo=cargo" >> $GITHUB_OUTPUT
227227
;;
228228
*linux*)
229229
echo "features=use-tcmalloc" >> $GITHUB_OUTPUT
230230
echo "cargo=cargo" >> $GITHUB_OUTPUT
231231
;;
232+
*aarch64*windows*)
233+
echo "features=use-snmalloc" >> $GITHUB_OUTPUT
234+
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
235+
;;
232236
*windows*)
233-
echo "features=" >> $GITHUB_OUTPUT
237+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
234238
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
235239
;;
236240
*)
237-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
241+
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
238242
echo "cargo=cargo" >> $GITHUB_OUTPUT
239243
;;
240244
esac
241245
## backup memo
242-
#${{ steps.features.outputs.cargo }} build --profile dist --target "${{ join(matrix.targets) }}" ${{ steps.features.outputs.features }}
243-
#dist manifest ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} --target "${{ join(matrix.targets) }}" > dist-manifest.json
244-
246+
#sed -i -e "s/features = .*/features = [\"${{ steps.features.outputs.features }}\"]/" dist-workspace.toml
245247
shell: "bash"
246248
- name: "Install rust and rust-src"
247249
run: |

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
resolver = "3"
99

1010
[workspace.package]
11-
version = "0.6.20"
11+
version = "0.6.21"
1212
authors = ["Masato TOYOSHIMA", "phoepsilonix <phoepsilonix@gmail.com>"]
1313
edition = "2024"
1414
rust-version = "1.90.0"

0 commit comments

Comments
 (0)