Skip to content

Commit

Permalink
Remove logic related to Windows binary (#4659)
Browse files Browse the repository at this point in the history
* Remove building and publishing Windows binary

* Remove logic related to Windows binary

---------

Co-authored-by: Anil Keshav <[email protected]>
  • Loading branch information
vstarostin and anilkeshav27 authored Nov 9, 2023
1 parent 428afbb commit 54604fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ 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
name: 'publish Linux master binary'
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
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/upload-go-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 54604fb

Please sign in to comment.