Skip to content

Commit

Permalink
feat: darwin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
liondadev committed Sep 30, 2024
1 parent c21983a commit b894e01
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Release
on:
push:
tags:
- 'v*'
- "v*"

jobs:
build-win:
Expand All @@ -12,18 +12,21 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21'
go-version: "^1.21"
- name: Build for Windows
run: GOOS=windows GOARCH=amd64 go build -o ./mkbsd-win-x64.exe ./main.go
- name: Build for Linux (x64)
run: GOOS=linux GOARCH=amd64 go build -o ./mkbsd-linux-x64 ./main.go
- name: Build for MacOS (x64)
run: GOOS=darwin GOARCH=amd64 go build -o ./mkbsd-darwin-x64 ./main.go
- name: Build for MacOS (ARM)
run: GOOS=darwin GOARCH=amd64 go build -o ./mkbsd-darwin-arm ./main.go
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
files: |
./mkbsd-win-x64.exe
./mkbsd-linux-x64
./mkbsd-darwin-x64
./mkbsd-darwin-arm
token: ${{secrets.GH_PAT}}



0 comments on commit b894e01

Please sign in to comment.