From d5605eabc08defd82363b15ff75eb3dc519212cc Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Tue, 12 Dec 2023 17:58:01 -0500 Subject: [PATCH] workflows/ci: Use Rust triple instead of LLVM triple Signed-off-by: Andrew Gunnerson --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 098c4c4..4d726c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,16 +40,14 @@ jobs: | sed -E "s/^v//g;s/([^-]*-g)/r\1/;s/-/./g" \ >> "${GITHUB_OUTPUT}" - - name: Get Rust LLVM target triple + - name: Get Rust target triple id: get_target shell: bash env: RUSTC_BOOTSTRAP: '1' run: | echo -n 'name=' >> "${GITHUB_OUTPUT}" - rustc -Z unstable-options --print target-spec-json \ - | jq -r '."llvm-target"' \ - >> "${GITHUB_OUTPUT}" + rustc -vV | sed -n 's|host: ||p' >> "${GITHUB_OUTPUT}" - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2