From f0bc68585a27d730bb3dc16eaeeeab5ad2efeefb Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Tue, 27 Feb 2024 23:11:56 +0800 Subject: [PATCH] chore: Update workflow --- .github/workflows/build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b655455e5..30abd89dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,17 +96,15 @@ jobs: if: ${{ matrix.jobs.goarch == 'loong64' && matrix.jobs.abi == '1' }} run: | wget -q https://github.com/xishang0128/loongarch64-golang/releases/download/1.21.5/go1.21.5.linux-amd64-abi1.tar.gz - sudo tar zxf go1.21.5.linux-amd64-abi1.tar.gz - sudo rm -rf /opt/hostedtoolcache/go/1.20.14/x64/* - sudo cp -r go/* /opt/hostedtoolcache/go/1.20.14/x64 + sudo tar zxf go1.21.5.linux-amd64-abi1.tar.gz -C /usr/local + echo "/usr/local/go/bin" >> $GITHUB_PATH - name: Set up Go1.21 loongarch abi2 if: ${{ matrix.jobs.goarch == 'loong64' && matrix.jobs.abi == '2' }} run: | wget -q https://github.com/xishang0128/loongarch64-golang/releases/download/1.21.5/go1.21.5.linux-amd64-abi2.tar.gz - sudo tar zxf go1.21.5.linux-amd64-abi2.tar.gz - sudo rm -rf /opt/hostedtoolcache/go/1.20.14/x64/* - sudo cp -r go/* /opt/hostedtoolcache/go/1.20.14/x64 + sudo tar zxf go1.21.5.linux-amd64-abi2.tar.gz -C /usr/local + echo "/usr/local/go/bin" >> $GITHUB_PATH - name: Set variables if: ${{github.ref_name=='Alpha'}} @@ -166,7 +164,7 @@ jobs: if: ${{ matrix.jobs.goos == 'linux' && !contains(matrix.jobs.goarch, 'mips') }} run: | sudo apt-get install dpkg - if [ "${{matrix.jobs.goarch}}" = "loong64" ]; then + if [ "${{matrix.jobs.abi}}" = "1" ]; then ARCH=loongarch64 else ARCH=${{matrix.jobs.goarch}}