Build #12
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: Build | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: | |
- windows | |
- linux | |
goarch: | |
- amd64 | |
- arm64 | |
env: | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- name: Build | |
run: go build -o ccmanager cmd/ccmanager.go | |
- name: Release file | |
uses: djnicholson/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-name: ${{ github.event.release.name }} | |
tag-name: ${{ github.event.release.tag_name }} | |
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }} | |
file: ccmanager | |
# Separate mac amd64 build to support fsevents dependency | |
buildmacamd64: | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
goos: | |
- darwin | |
goarch: | |
- amd64 | |
env: | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- name: Build | |
run: go build -o ccmanager cmd/ccmanager.go | |
- name: Release file | |
uses: djnicholson/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-name: ${{ github.event.release.name }} | |
tag-name: ${{ github.event.release.tag_name }} | |
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }} | |
file: ccmanager | |
# Separate mac build to support fsevents dependency | |
buildmacarm64: | |
runs-on: macos-14 # beta arm runner | |
strategy: | |
matrix: | |
goos: | |
- darwin | |
goarch: | |
- arm64 | |
env: | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- name: Build | |
run: go build -o ccmanager cmd/ccmanager.go | |
- name: Release file | |
uses: djnicholson/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-name: ${{ github.event.release.name }} | |
tag-name: ${{ github.event.release.tag_name }} | |
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }} | |
file: ccmanager |