Skip to content

Commit 66416ef

Browse files
authored
Try building with mold (#17)
* Try building with mold * trigger * rollback branch mask
1 parent d1675cf commit 66416ef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/run-crasher.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ jobs:
4343
echo "crashing_time=$crashing_time" >> $GITHUB_OUTPUT
4444
- name: Install minimal stable
4545
uses: dtolnay/rust-toolchain@stable
46+
- name: Install mold
47+
uses: rui314/setup-mold@v1
48+
- name: Enable mold on Linux
49+
run: |
50+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
51+
mkdir .cargo
52+
echo "[target.x86_64-unknown-linux-gnu]" >> .cargo/config.toml
53+
echo "linker = \"clang\"" >> .cargo/config.toml
54+
echo "rustflags = [\"-C\", \"link-arg=-fuse-ld=/usr/local/bin/mold\"]" >> .cargo/config.toml
55+
fi
56+
shell: bash
4657
- name: Install Protoc
4758
uses: arduino/setup-protoc@v3
4859
with:

0 commit comments

Comments
 (0)