Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
3v0k4 committed Jun 6, 2024
1 parent 03f7e92 commit 4d059aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- run: go test
- run: make dist
if: startsWith(github.ref, 'refs/tags/')
- run: ls dist
if: startsWith(github.ref, 'refs/tags/')
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.PHONY: dist

PLATFORMS = linux darwin
ARCHITECTURES = amd64 arm64

dist:
@for platform in $(PLATFORMS); do \
for arch in $(ARCHITECTURES); do \
GOOS=$$platform GOARCH=$$arch go build -trimpath -o dist/unpath-$$platform-$$arch main.go; \
done \
done

0 comments on commit 4d059aa

Please sign in to comment.