Merge pull request #2 from zeno4ever/zeno4ever-patch-1 #40
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
# GitHub Action to build Go | |
# jtruk / RiFT | |
# First version: 2023-09-11 | |
name: Build Releases | |
# Trigger workflow when we push to main, or manually start it | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
release: | |
strategy: | |
matrix: | |
os: [ 'windows', 'linux', 'darwin' ] | |
include: | |
- os: windows | |
exename: bytejammer.exe | |
- os: linux | |
exename: bytejammer | |
- os: darwin | |
exename: bytejammer | |
runs-on: ubuntu-latest | |
steps: | |
# Check-out this repository under $GITHUB_WORKSPACE | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: './go.mod' | |
- name: Build | |
run: GOOS=${{matrix.os}} GOARCH=amd64 go build -o ./${{matrix.exename}} | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bytejammer-${{matrix.os}} | |
path: | | |
./README.md | |
./playlist/ | |
./${{matrix.exename}} |