Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml29
1 files changed, 22 insertions, 7 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index c8e6de72ce..a758ecfd46 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -29,19 +29,25 @@ jobs:
- os: windows-latest
target: x86_64-pc-windows-msvc
code-target: win32-x64
+ pgo: clap-rs/[email protected]
- os: windows-latest
target: i686-pc-windows-msvc
+ pgo: clap-rs/[email protected]
- os: windows-latest
target: aarch64-pc-windows-msvc
code-target: win32-arm64
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- zig_target: x86_64-unknown-linux-gnu.2.28
+ # Use a container with glibc 2.28
+ # Zig is not used because it doesn't work with PGO
+ container: quay.io/pypa/manylinux_2_28_x86_64
code-target: linux-x64
- - os: ubuntu-latest
+ pgo: clap-rs/[email protected]
+ - os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- zig_target: aarch64-unknown-linux-gnu.2.28
+ container: quay.io/pypa/manylinux_2_28_aarch64
code-target: linux-arm64
+ pgo: clap-rs/[email protected]
- os: ubuntu-latest
target: arm-unknown-linux-gnueabihf
zig_target: arm-unknown-linux-gnueabihf.2.28
@@ -49,9 +55,11 @@ jobs:
- os: macos-13
target: x86_64-apple-darwin
code-target: darwin-x64
- - os: macos-13
+ pgo: clap-rs/[email protected]
+ - os: macos-14
target: aarch64-apple-darwin
code-target: darwin-arm64
+ pgo: clap-rs/[email protected]
name: dist (${{ matrix.target }})
runs-on: ${{ matrix.os }}
@@ -71,10 +79,17 @@ jobs:
with:
node-version: 22
+ - name: Install rustup
+ if: ${{ matrix.container }}
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
- rustup component add rust-src
+ # llvm-tools contain the llvm-profdata tool which is needed for PGO
+ rustup component add rust-src ${{ matrix.pgo && 'llvm-tools' || '' }}
rustup target add ${{ matrix.target }}
- name: Install Zig toolchain
@@ -87,11 +102,11 @@ jobs:
- name: Dist (plain)
if: ${{ !matrix.zig_target }}
- run: cargo xtask dist --client-patch-version ${{ github.run_number }}
+ run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}}
- name: Dist (using zigbuild)
if: ${{ matrix.zig_target }}
- run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig
+ run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && format('--pgo {0}', matrix.pgo) || ''}}
- run: npm ci
working-directory: editors/code