From ae87f80eda6fb2559204e876733d96070b343a58 Mon Sep 17 00:00:00 2001 From: Vyacheslav Starostin Date: Tue, 7 Nov 2023 01:23:45 +0600 Subject: [PATCH 1/2] Remove building and publishing Windows binary --- .github/workflows/upload-go-master.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/upload-go-master.yml b/.github/workflows/upload-go-master.yml index 92ebb4ca25..058101a3ea 100644 --- a/.github/workflows/upload-go-master.yml +++ b/.github/workflows/upload-go-master.yml @@ -61,19 +61,3 @@ jobs: piper-version: master command: githubPublishRelease flags: --token ${{ secrets.GITHUB_TOKEN }} --version latest --assetPath ./piper_master-darwin.arm64 - - env: - CGO_ENABLED: 0 - GOOS: windows - GOARCH: amd64 - run: | - # See https://golang.org/cmd/link/ for info on -w (omit the DWARF symbol table) and -s (omit the symbol table and debug information) - # We use those flags to get a smaller compiled binary for faster downloads. - go build -ldflags "-w -s -X github.com/SAP/jenkins-library/cmd.GitCommit=${GITHUB_SHA} \ - -X github.com/SAP/jenkins-library/pkg/log.LibraryRepository=${GITHUB_REPOSITORY} \ - -X github.com/SAP/jenkins-library/pkg/telemetry.LibraryRepository=https://github.com/${GITHUB_REPOSITORY}.git" \ - -o piper_master-win.x86_64.exe . - - uses: SAP/project-piper-action@master - with: - piper-version: master - command: githubPublishRelease - flags: --token ${{ secrets.GITHUB_TOKEN }} --version latest --assetPath ./piper_master-win.x86_64.exe From c7cf553f2df440a4a92a132bc99a9878ef69f6a6 Mon Sep 17 00:00:00 2001 From: Vyacheslav Starostin Date: Tue, 7 Nov 2023 01:25:35 +0600 Subject: [PATCH 2/2] Remove logic related to Windows binary --- .github/workflows/release-go.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release-go.yml b/.github/workflows/release-go.yml index 7fc27d24ae..1fb84b4c7d 100644 --- a/.github/workflows/release-go.yml +++ b/.github/workflows/release-go.yml @@ -23,11 +23,9 @@ jobs: curl --insecure --silent --location --write-out '%{http_code}' --output ./piper_master https://github.com/SAP/jenkins-library/releases/latest/download/piper_master curl --insecure --silent --location --write-out '%{http_code}' --output ./piper_master-darwin.x86_64 https://github.com/SAP/jenkins-library/releases/latest/download/piper_master-darwin.x86_64 curl --insecure --silent --location --write-out '%{http_code}' --output ./piper_master-darwin.arm64 https://github.com/SAP/jenkins-library/releases/latest/download/piper_master-darwin.arm64 - curl --insecure --silent --location --write-out '%{http_code}' --output ./piper_master-win.x86_64.exe https://github.com/SAP/jenkins-library/releases/latest/download/piper_master-win.x86_64.exe cp ./piper_master ./piper cp ./piper_master-darwin.x86_64 ./piper-darwin.x86_64 cp ./piper_master-darwin.arm64 ./piper-darwin.arm64 - cp ./piper_master-win.x86_64.exe ./piper-win.x86_64.exe npm install semver --quiet echo "PIPER_version=v$(node_modules/.bin/semver -i minor $(curl --silent "https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest" | jq -r .tag_name))" >> $GITHUB_ENV - uses: SAP/project-piper-action@master @@ -35,7 +33,7 @@ jobs: with: piper-version: master command: githubPublishRelease - flags: --token ${{ secrets.GITHUB_TOKEN }} --assetPathList ./piper_master --assetPathList ./piper --assetPathList ./piper_master-darwin.x86_64 --assetPathList ./piper-darwin.x86_64 --assetPathList ./piper_master-darwin.arm64 --assetPathList ./piper-darwin.arm64 --assetPathList ./piper_master-win.x86_64.exe --assetPathList ./piper-win.x86_64.exe + flags: --token ${{ secrets.GITHUB_TOKEN }} --assetPathList ./piper_master --assetPathList ./piper --assetPathList ./piper_master-darwin.x86_64 --assetPathList ./piper-darwin.x86_64 --assetPathList ./piper_master-darwin.arm64 --assetPathList ./piper-darwin.arm64 - name: Build and publish jar for consumption in unit tests run: mvn package - uses: SAP/project-piper-action@master