diff --git a/.github/workflows/butterflynet.yml b/.github/workflows/butterflynet.yml index 7a6e93f0bd45..f55b6b571471 100644 --- a/.github/workflows/butterflynet.yml +++ b/.github/workflows/butterflynet.yml @@ -19,6 +19,9 @@ jobs: name: Butterflynet checks runs-on: ubuntu-24.04-arm steps: + - uses: rui314/setup-mold@v1 + with: + make-default: false - name: Checkout Sources uses: actions/checkout@v6 - name: Setup sccache @@ -29,7 +32,7 @@ jobs: - name: Build and install Forest binaries env: # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=mold" run: mise run install --slim quick - name: Run butterflynet checks run: ./scripts/tests/butterflynet_check.sh diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e2cef801af26..f4b75b88145e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -29,7 +29,7 @@ env: CC: clang CXX: clang++ # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=mold" FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT: 1 FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters RUST_LOG: error @@ -77,6 +77,9 @@ jobs: echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION}}" } >> "$GITHUB_ENV" fi + - uses: rui314/setup-mold@v1 + with: + make-default: false - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.10 timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 573afc21279a..5d1c8b8186f8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -55,6 +55,9 @@ jobs: echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION}}" } >> "$GITHUB_ENV" fi + - uses: rui314/setup-mold@v1 + with: + make-default: false - name: Checkout Sources uses: actions/checkout@v6 - name: Setup sccache @@ -65,7 +68,7 @@ jobs: - name: Cargo Install env: # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=mold" run: mise run install ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && 'release' || 'quick' }} - uses: actions/upload-artifact@v7 with: @@ -93,6 +96,9 @@ jobs: } >> "$GITHUB_ENV" fi echo "SCCACHE_S3_KEY_PREFIX=aarch64" >> "$GITHUB_ENV" + - uses: rui314/setup-mold@v1 + with: + make-default: false - name: Checkout Sources uses: actions/checkout@v6 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') @@ -105,6 +111,9 @@ jobs: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - name: Cargo Install if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') + env: + # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=mold" run: mise run install release - uses: actions/upload-artifact@v7 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index c6d2cc0a31c7..34ba5a9b494d 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -83,6 +83,9 @@ jobs: echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION}}" } >> "$GITHUB_ENV" fi + - uses: rui314/setup-mold@v1 + with: + make-default: false - name: Checkout Sources uses: actions/checkout@v6 - name: Setup sccache @@ -100,7 +103,7 @@ jobs: - name: Install Forest env: # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=mold" run: mise run install --slim quick - uses: actions/upload-artifact@v7 with: