Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fzwoch committed Feb 25, 2024
1 parent 93f521b commit 614f92a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.2'
go-version: '1.22.0'

- name: Build amd64
run: |
GOOS=darwin GOARCH=amd64 go build -buildvcs=false -ldflags="-X main.version=$(git describe --always --tags)" -o appfuk-x86_64
- name: Build arm64
run: |
GOOS=darwin GOARCH=arm64 go build -buildvcs=false -ldflags="-X main.version=$(git describe --always --tags)" -o appfuk-arm64
- name: Lipo
run: |
curl -L -o /tmp/lipo https://github.com/konoui/lipo/releases/latest/download/lipo_linux_amd64
chmod u+x /tmp/lipo
/tmp/lipo -create appfuk-x86_64 appfuk-arm64 -output appfuk
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module appfuk

go 1.18
go 1.22

0 comments on commit 614f92a

Please sign in to comment.