Github Actions 🎬 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Binary | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23' | |
- name: Install Dependencies | |
run: | | |
brew install opencv | |
- name: Build ARM64 | |
run: | | |
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o frostyfriend-darwin-arm64 | |
- name: Build AMD64 | |
run: | | |
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o frostyfriend-darwin-amd64 | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
frostyfriend-darwin-arm64 | |
frostyfriend-darwin-amd64 |