From acdfaabfa52c45a51ffc0ebcabf2fbd4bd5c68d6 Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Fri, 14 Jun 2024 16:09:12 +0800 Subject: [PATCH] fix(ci): use `ld_classic` on macOS (#4143) fix: use ld_classic on macos --- .github/actions/build-macos-artifacts/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/actions/build-macos-artifacts/action.yml b/.github/actions/build-macos-artifacts/action.yml index 0b2d42cebb..f2415b576a 100644 --- a/.github/actions/build-macos-artifacts/action.yml +++ b/.github/actions/build-macos-artifacts/action.yml @@ -59,9 +59,15 @@ runs: if: ${{ inputs.disable-run-tests == 'false' }} uses: taiki-e/install-action@nextest + # Get proper backtraces in mac Sonoma. Currently there's an issue with the new + # linker that prevents backtraces from getting printed correctly. + # + # - name: Run integration tests if: ${{ inputs.disable-run-tests == 'false' }} shell: bash + env: + CARGO_BUILD_RUSTFLAGS: "-Clink-arg=-Wl,-ld_classic" run: | make test sqlness-test @@ -75,6 +81,8 @@ runs: - name: Build greptime binary shell: bash + env: + CARGO_BUILD_RUSTFLAGS: "-Clink-arg=-Wl,-ld_classic" run: | make build \ CARGO_PROFILE=${{ inputs.cargo-profile }} \