File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ jobs:
38
38
target : x86_64-unknown-linux-gnu
39
39
zig_target : x86_64-unknown-linux-gnu.2.28
40
40
code-target : linux-x64
41
+ pgo : true
41
42
- os : ubuntu-latest
42
43
target : aarch64-unknown-linux-gnu
43
44
zig_target : aarch64-unknown-linux-gnu.2.28
44
45
code-target : linux-arm64
46
+ pgo : true
45
47
- os : ubuntu-latest
46
48
target : arm-unknown-linux-gnueabihf
47
49
zig_target : arm-unknown-linux-gnueabihf.2.28
74
76
- name : Install Rust toolchain
75
77
run : |
76
78
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' || '' }}
78
81
rustup target add ${{ matrix.target }}
79
82
80
83
- name : Install Zig toolchain
@@ -87,11 +90,11 @@ jobs:
87
90
88
91
- name : Dist (plain)
89
92
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' || ''}}
91
94
92
95
- name : Dist (using zigbuild)
93
96
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' || ''}}
95
98
96
99
- run : npm ci
97
100
working-directory : editors/code
You can’t perform that action at this time.
0 commit comments