From 9ba6a070d07198b85e68ea9806093ab99e734b48 Mon Sep 17 00:00:00 2001 From: 7sDream Date: Sun, 9 Jun 2024 13:18:15 +0800 Subject: [PATCH] ci: try fix daily ci --- .github/workflows/action-build.yml | 11 ++++++----- .github/workflows/ci.yml | 2 +- rust-toolchain.toml | 3 --- 3 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 rust-toolchain.toml diff --git a/.github/workflows/action-build.yml b/.github/workflows/action-build.yml index 5e08883..67dcba2 100644 --- a/.github/workflows/action-build.yml +++ b/.github/workflows/action-build.yml @@ -68,7 +68,7 @@ jobs: platform: linux arch: armhf libc: musl - - os: macos-11 + - os: macos-12 rust-target: x86_64-apple-darwin platform: darwin arch: x64 @@ -86,23 +86,24 @@ jobs: - name: Install Rust toolchains run: | rustup set auto-self-update disable - rustup toolchain install ${{ inputs.channel }} --profile minimal -t ${{ matrix.rust-target }} + rustup toolchain install ${{ inputs.channel }} -t ${{ matrix.rust-target }} --profile minimal + rustup default ${{ inputs.channel }}-${{ matrix.rust-target }} rustup show - - name: Install AArch64 target toolchain + - name: Install AArch64 target toolchain for Linux if: matrix.platform == 'linux' && matrix.arch == 'arm64' run: | sudo apt-get update sudo apt-get install gcc-aarch64-linux-gnu UPPER_TARGET=$(echo ${{ matrix.rust-target }} | tr '[a-z]-' '[A-Z]_') echo "CARGO_TARGET_${UPPER_TARGET}_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV" - - name: Install ARM target toolchain + - name: Install ARM target toolchain for Linux if: matrix.platform == 'linux' && matrix.arch == 'armhf' run: | sudo apt-get update sudo apt-get install gcc-arm-linux-gnueabihf UPPER_TARGET=$(echo ${{ matrix.rust-target }} | tr '[a-z]-' '[A-Z]_') echo "CARGO_TARGET_${UPPER_TARGET}_LINKER=arm-linux-gnueabihf-gcc" >> "$GITHUB_ENV" - - name: Install musl toolchain + - name: Install musl toolchain for Linux if: matrix.platform == 'linux' && matrix.libc == 'musl' run: | sudo apt-get update diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e5bbcc..4b1b8f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: jobs: depver: - if: "contains(github.event.head_commit.message, '(release)')" + if: contains(github.event.head_commit.message, '(release)') uses: ./.github/workflows/action-depver.yml lint: diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 02cb8fc..0000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,3 +0,0 @@ -[toolchain] -channel = "stable" -profile = "default"