Skip to content

Commit 0052f6a

Browse files
committed
Use PGO for x64 and aarch64 Linux builds on CI
1 parent 43449a8 commit 0052f6a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ jobs:
3838
target: x86_64-unknown-linux-gnu
3939
zig_target: x86_64-unknown-linux-gnu.2.28
4040
code-target: linux-x64
41+
pgo: true
4142
- os: ubuntu-latest
4243
target: aarch64-unknown-linux-gnu
4344
zig_target: aarch64-unknown-linux-gnu.2.28
4445
code-target: linux-arm64
46+
pgo: true
4547
- os: ubuntu-latest
4648
target: arm-unknown-linux-gnueabihf
4749
zig_target: arm-unknown-linux-gnueabihf.2.28
@@ -74,7 +76,8 @@ jobs:
7476
- name: Install Rust toolchain
7577
run: |
7678
rustup update --no-self-update stable
77-
rustup component add rust-src
79+
# llvm-tools contain the llvm-profdata tool which is needed for PGO
80+
rustup component add rust-src ${{ matrix.pgo && 'llvm-tools' || '' }}
7881
rustup target add ${{ matrix.target }}
7982
8083
- name: Install Zig toolchain
@@ -87,11 +90,11 @@ jobs:
8790
8891
- name: Dist (plain)
8992
if: ${{ !matrix.zig_target }}
90-
run: cargo xtask dist --client-patch-version ${{ github.run_number }}
93+
run: cargo xtask dist --client-patch-version ${{ github.run_number }} ${{ matrix.pgo && '--pgo' || ''}}
9194

9295
- name: Dist (using zigbuild)
9396
if: ${{ matrix.zig_target }}
94-
run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig
97+
run: RA_TARGET=${{ matrix.zig_target}} cargo xtask dist --client-patch-version ${{ github.run_number }} --zig ${{ matrix.pgo && '--pgo' || ''}}
9598

9699
- run: npm ci
97100
working-directory: editors/code

0 commit comments

Comments
 (0)