Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefMarlin committed Aug 11, 2023
1 parent 7a11a96 commit 3737aaf
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,27 @@ jobs:
- name: Download releaseMaker
run: wget https://github.com/8ff/releaseMaker/releases/download/latest/releaseMaker.linux.amd64 -O /tmp/releaseMaker && chmod +x /tmp/releaseMaker

- name: Build binaries
run: |
binaryPrefix=${{ github.event.repository.name }}
GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.darwin.arm64"
GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.darwin.amd64"
GOOS=linux GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.linux.arm64"
GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.linux.amd64"
GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.windows.amd64.exe"
# GOOS=windows GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.windows.arm64.exe"
- name: Set binary prefix
run: binaryPrefix=${{ github.event.repository.name }}

- name: Build Darwin ARM64 binary
run: GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.darwin.arm64"

- name: Build Darwin AMD64 binary
run: GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.darwin.amd64"

- name: Build Linux ARM64 binary
run: GOOS=linux GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.linux.arm64"

- name: Build Linux AMD64 binary
run: GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.linux.amd64"

- name: Build Windows AMD64 binary
run: GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.windows.amd64.exe"

- name: Build Windows ARM64 binary
run: GOOS=windows GOARCH=arm64 go build -ldflags "-X 'main.Version=$(date +'%Y-%m-%d_%H:%M:%S')'" -o "/tmp/build/${binaryPrefix}.windows.arm64.exe"



- name: Replace Existing Release
Expand Down

0 comments on commit 3737aaf

Please sign in to comment.