diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a7c9d9df..d745cba4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -92,7 +92,7 @@ jobs: - name: Build v2rayA shell: pwsh run: | - New-Item -Path ./v2raya_bin -ItemType Directory v2raya_bin + New-Item -Path ./v2raya_bin -ItemType Directory -Force $CurrentDir = (Get-Location).Path $dateLong = git log -1 --format="%cd" --date=short $date = $DateLong -replace "-"; "" @@ -102,8 +102,8 @@ jobs: $os = "windows" ${env:CGO_ENABLED} = "0" Set-Location "$CurrentDir"/service - ${env:GOARCH} = amd64; go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_"${env:GOARCH}"_"$version".exe - ${env:GOARCH} = arm64; go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_"${env:GOARCH}"_"$version".exe + ${env:GOARCH} = amd64; go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_amd64_"$version".exe + ${env:GOARCH} = arm64; go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya_bin/v2raya_pr_build_"$os"_arm64_"$version".exe - name: Upload Zip File to Artifacts uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8 with: