feat: Change beep to the new maintainer #65
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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
tags: [ "v*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
check-latest: true | |
cache: true | |
- name: Install packages | |
run: sudo apt install -y libasound2-dev | |
- name: Test | |
run: go test -v ./... | |
build-linux-and-windows: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
check-latest: true | |
cache: true | |
- name: Install packages | |
run: sudo apt install -y libasound2-dev | |
- name: Install gox | |
run: go install github.com/mitchellh/gox@latest | |
- name: Build | |
run: gox -output="./output/radio_{{.OS}}_{{.Arch}}" -osarch="windows/amd64 windows/386 linux/amd64" | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: GoRadio binaries | |
# A file, directory or wildcard pattern that describes what to upload | |
path: ./output/* | |
# The desired behavior if no files are found using the provided path. | |
if-no-files-found: error | |
retention-days: 7 | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
check-latest: true | |
cache: true | |
- name: Install gox | |
run: go install github.com/mitchellh/gox@latest | |
- name: Build | |
run: gox -output="./output/radio_{{.OS}}_{{.Arch}}" -osarch="darwin/amd64" | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: GoRadio binaries | |
# A file, directory or wildcard pattern that describes what to upload | |
path: ./output/* | |
# The desired behavior if no files are found using the provided path. | |
if-no-files-found: error | |
retention-days: 7 | |
release: | |
name: Create Github release from artifacts | |
runs-on: ubuntu-latest | |
needs: [build-linux-and-windows, build-macos, test] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download built binaries | |
uses: actions/download-artifact@v3 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
files: ./**/* |