From 0317d9f74229374bd5ed55e4c2bb63f68e06c9c8 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Wed, 11 Mar 2026 15:54:02 +0800 Subject: [PATCH] action: adjust setup go condition --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48ef8d5f..461a4009 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: - { goos: linux, goarch: mipsle, gomips: softfloat, output: mipsle-softfloat } - { goos: linux, goarch: mips64, output: mips64 } - { goos: linux, goarch: mips64le, output: mips64le, debian: mips64el, rpm: mips64el } - - { goos: linux, goarch: loong64, output: loong64-abi1, abi: '1', debian: loongarch64, rpm: loongarch64 } + - { goos: linux, goarch: loong64, output: loong64-abi1, abi: '1', debian: loongarch64, rpm: loongarch64, goversion: 'custom' } - { goos: linux, goarch: loong64, output: loong64-abi2, abi: '2', debian: loong64, rpm: loong64 } - { goos: linux, goarch: riscv64, output: riscv64, debian: riscv64, rpm: riscv64 } - { goos: linux, goarch: s390x, output: s390x, debian: s390x, rpm: s390x } @@ -158,14 +158,14 @@ jobs: - uses: actions/checkout@v5 - name: Set up Go - if: ${{ matrix.jobs.goversion == '' && matrix.jobs.abi != '1' }} + if: ${{ matrix.jobs.goversion == '' }} uses: actions/setup-go@v6 with: go-version: '1.26' check-latest: true # Always check for the latest patch release - name: Set up Go - if: ${{ matrix.jobs.goversion != '' && matrix.jobs.abi != '1' }} + if: ${{ matrix.jobs.goversion != '' && matrix.jobs.goversion != 'custom' }} uses: actions/setup-go@v6 with: go-version: ${{ matrix.jobs.goversion }}