From f15b45ab7532f45632079c6ffe1b010b7a1251ef Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Thu, 6 Mar 2025 22:09:41 +0900 Subject: [PATCH 1/2] ci: explicitly install target rust version --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7c4c6ab..c35afef0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,9 @@ jobs: - name: Setup rustup run: | + rustup set auto-self-update disable + rustup install ${{ env.RUST_VERSION }} rustup default ${{ env.RUST_VERSION }} - rustup update - name: Build run: | @@ -68,9 +69,10 @@ jobs: - uses: actions/checkout@v4 - name: Setup rustup run: | + rustup set auto-self-update disable + rustup install ${{ env.RUST_VERSION }} rustup default ${{ env.RUST_VERSION }} rustup target add aarch64-unknown-linux-gnu - rustup update - name: Build run: | @@ -96,6 +98,7 @@ jobs: run: | rustup-init -y source "$HOME/.cargo/env" + rustup set auto-self-update disable rustup component add llvm-tools - name: Setup grcov From fad19869a224391a9e8fe567e811937cbd4a2c71 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Thu, 6 Mar 2025 22:16:54 +0900 Subject: [PATCH 2/2] build: bump corrosion to 0.5.1 to fix rustup breaking change --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f20312d..d1bd2227 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,7 @@ if(NOT Corrosion_FOUND) FetchContent_Declare( Corrosion GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG 64289b1d79d6d19cd2e241db515381a086bb8407 # v0.5 + GIT_TAG b1fab721655c5c4b1b08a083d3cd29f163af75d0 # v0.5.1 FIND_PACKAGE_ARGS ) FetchContent_MakeAvailable(Corrosion)