diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 28914118de94..ab67d334dd03 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,12 +30,14 @@ jobs: target: x86_64-pc-windows-msvc code-target: win32-x64 pgo: clap-rs/clap@v4.5.36 + allocator: jemalloc - os: windows-latest target: i686-pc-windows-msvc pgo: clap-rs/clap@v4.5.36 - os: windows-latest target: aarch64-pc-windows-msvc code-target: win32-arm64 + allocator: jemalloc - os: ubuntu-latest target: x86_64-unknown-linux-gnu # Use a container with glibc 2.28 @@ -43,15 +45,18 @@ jobs: container: quay.io/pypa/manylinux_2_28_x86_64 code-target: linux-x64 pgo: clap-rs/clap@v4.5.36 + allocator: jemalloc - os: ubuntu-24.04-arm target: aarch64-unknown-linux-gnu container: quay.io/pypa/manylinux_2_28_aarch64 code-target: linux-arm64 pgo: clap-rs/clap@v4.5.36 + allocator: jemalloc - os: ubuntu-latest target: arm-unknown-linux-gnueabihf zig_target: arm-unknown-linux-gnueabihf.2.28 code-target: linux-armhf + allocator: jemalloc - os: macos-14 target: x86_64-apple-darwin code-target: darwin-x64 @@ -67,6 +72,12 @@ jobs: env: RA_TARGET: ${{ matrix.target }} + ALLOCATOR: >- + ${{ + (matrix.allocator == 'jemalloc' || matrix.allocator == 'mimalloc') + && format('--{0}', matrix.allocator) + || '' + }} steps: - name: Checkout repository @@ -100,13 +111,16 @@ jobs: sudo ln -s "/usr/local/zig-linux-$(uname -m)-${ZIG_VERSION}/zig" /usr/local/bin/zig curl -L "https://github.com/rust-cross/cargo-zigbuild/releases/download/v${ZIGBUILD_VERSION}/cargo-zigbuild-v${ZIGBUILD_VERSION}.x86_64-unknown-linux-musl.tar.gz" | tar zxC ~/.cargo/bin + - name: Debug + run: echo $ALLOCATOR + - name: Dist (plain) if: ${{ !matrix.zig_target }} - run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} + run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} $ALLOCATOR - name: Dist (using zigbuild) if: ${{ matrix.zig_target }} - run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} + run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}} $ALLOCATOR - run: npm ci working-directory: editors/code