We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228d4b2 commit ce39fa3Copy full SHA for ce39fa3
1 file changed
.github/workflows/rust.yml
@@ -25,6 +25,17 @@ jobs:
25
uses: arduino/setup-protoc@v3
26
with:
27
repo-token: ${{ secrets.GITHUB_TOKEN }}
28
+ - name: Install mold
29
+ uses: rui314/setup-mold@v1
30
+ - name: Enable mold on Linux
31
+ run: |
32
+ if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
33
+ mkdir .cargo
34
+ echo "[target.x86_64-unknown-linux-gnu]" >> .cargo/config.toml
35
+ echo "linker = \"clang\"" >> .cargo/config.toml
36
+ echo "rustflags = [\"-C\", \"link-arg=-fuse-ld=/usr/local/bin/mold\"]" >> .cargo/config.toml
37
+ fi
38
+ shell: bash
39
- name: Install nextest
40
uses: taiki-e/install-action@nextest
41
- name: Build
0 commit comments