From 81a8a63861c56f1b81f59bc6b53d62d556a06baa Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Thu, 26 Oct 2023 11:39:54 +0800 Subject: [PATCH] build: more go120 build --- .github/rename-go120.sh | 2 +- .github/workflows/build.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/rename-go120.sh b/.github/rename-go120.sh index 136d74b56..eddb1769c 100644 --- a/.github/rename-go120.sh +++ b/.github/rename-go120.sh @@ -4,7 +4,7 @@ FILENAMES=$(ls) for FILENAME in $FILENAMES do if [[ ! ($FILENAME =~ ".exe" || $FILENAME =~ ".sh")]];then - mc $FILENAME ${FILENAME}-go120 + mv $FILENAME ${FILENAME}-go120 elif [[ $FILENAME =~ ".exe" ]];then mv $FILENAME ${FILENAME%.*}-go120.exe else echo "skip $FILENAME" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df603041b..57a00f3e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,8 +69,12 @@ jobs: target: "darwin-amd64 darwin-arm64 android-arm64", id: "9", } - # Go 1.21 requires at least Windows 10 or Windows Server 2016; support for previous versions has been discontinued. - - { type: "WithoutCGO-GO120", target: "windows-amd64-compatible windows-amd64 windows-386",id: "10" } + # only for test + - { type: "WithoutCGO-GO120", target: "linux-amd64 linux-amd64-compatible",id: "1" } + # Go 1.20 is the last release that will run on any release of Windows 7, 8, Server 2008 and Server 2012. Go 1.21 will require at least Windows 10 or Server 2016. + - { type: "WithoutCGO-GO120", target: "windows-amd64-compatible windows-amd64 windows-386",id: "2" } + # Go 1.20 is the last release that will run on macOS 10.13 High Sierra or 10.14 Mojave. Go 1.21 will require macOS 10.15 Catalina or later. + - { type: "WithoutCGO-GO120", target: "darwin-amd64 darwin-arm64 android-arm64",id: "3" } - { type: "WithCGO", target: "windows/*", id: "1" } - { type: "WithCGO", target: "linux/386", id: "2" } - { type: "WithCGO", target: "linux/amd64", id: "3" } @@ -142,7 +146,7 @@ jobs: check-latest: true - name: Test - if: ${{ matrix.job.id=='1' && matrix.job.type=='WithoutCGO' }} + if: ${{ matrix.job.id=='1' && matrix.job.type!='WithCGO' }} run: | go test ./...