From 4917f0966c726070b3d8fa41c5ad7404d44a5501 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 27 Sep 2024 00:37:04 +0800 Subject: [PATCH] fix(release): downgrade upload release asset action to use old nodejs version (#648) --- .github/workflows/release.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8af4676..7de2199 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,16 +91,19 @@ jobs: with: targets: ${{ matrix.config.rust_target }} toolchain: 1.80.0 + - name: Build all crates + if: ${{ matrix.config.os_name != 'linux' }} + run: | + cargo build --release --features ${{ matrix.feature }} - uses: actions/checkout@v1 # for glibc 2.17 if: ${{ matrix.config.os_name == 'linux' }} - - name: Install essential dependencies # for glibc 2.17 - if: ${{ matrix.config.os_name == 'linux' }} - run: yum install -y openssl-devel - name: Install rust # for glibc 2.17 if: ${{ matrix.config.os_name == 'linux' }} run: | + yum install -y openssl-devel curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal - - name: Build all crates + - name: Build all crates # for glibc 2.17 + if: ${{ matrix.config.os_name == 'linux' }} run: | . "$HOME/.cargo/env" cargo build --release --features ${{ matrix.feature }} @@ -136,7 +139,7 @@ jobs: Compress-Archive -Path $dllFiles -DestinationPath "avante_lib-${{ matrix.config.os_name }}-${{ matrix.config.arch }}-${{ matrix.feature }}.zip" - name: Upload Release Asset - uses: shogo82148/actions-upload-release-asset@v1 + uses: shogo82148/actions-upload-release-asset@v1.6.6 if: ${{ matrix.config.os_name != 'windows' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}