Skip to content

Commit 07660bc

Browse files
committed
Enable jemalloc for releases
1 parent a84d92f commit 07660bc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,33 @@ jobs:
3030
target: x86_64-pc-windows-msvc
3131
code-target: win32-x64
3232
pgo: clap-rs/clap@v4.5.36
33+
allocator: jemalloc
3334
- os: windows-latest
3435
target: i686-pc-windows-msvc
3536
pgo: clap-rs/clap@v4.5.36
3637
- os: windows-latest
3738
target: aarch64-pc-windows-msvc
3839
code-target: win32-arm64
40+
allocator: jemalloc
3941
- os: ubuntu-latest
4042
target: x86_64-unknown-linux-gnu
4143
# Use a container with glibc 2.28
4244
# Zig is not used because it doesn't work with PGO
4345
container: quay.io/pypa/manylinux_2_28_x86_64
4446
code-target: linux-x64
4547
pgo: clap-rs/clap@v4.5.36
48+
allocator: jemalloc
4649
- os: ubuntu-24.04-arm
4750
target: aarch64-unknown-linux-gnu
4851
container: quay.io/pypa/manylinux_2_28_aarch64
4952
code-target: linux-arm64
5053
pgo: clap-rs/clap@v4.5.36
54+
allocator: jemalloc
5155
- os: ubuntu-latest
5256
target: arm-unknown-linux-gnueabihf
5357
zig_target: arm-unknown-linux-gnueabihf.2.28
5458
code-target: linux-armhf
59+
allocator: jemalloc
5560
- os: macos-14
5661
target: x86_64-apple-darwin
5762
code-target: darwin-x64
@@ -67,6 +72,7 @@ jobs:
6772

6873
env:
6974
RA_TARGET: ${{ matrix.target }}
75+
ALLOCATOR: ${{ (matrix.allocator == 'jemalloc' || matrix.allocator == 'mimalloc') && '--' + matrix.allocator || '' }}
7076

7177
steps:
7278
- name: Checkout repository
@@ -102,11 +108,11 @@ jobs:
102108
103109
- name: Dist (plain)
104110
if: ${{ !matrix.zig_target }}
105-
run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}}
111+
run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} $ALLOCATOR
106112

107113
- name: Dist (using zigbuild)
108114
if: ${{ matrix.zig_target }}
109-
run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}}
115+
run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} $ALLOCATOR
110116

111117
- run: npm ci
112118
working-directory: editors/code

0 commit comments

Comments
 (0)