-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.05 KB
/
release.yml
File metadata and controls
49 lines (38 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release RetroS
permissions:
contents: write
on:
push:
tags:
- '*'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.3
- name: Test
run: go test -v ./...
- name: Build Go binary for Linux
run: go build -o bin/linux/retros ./cmd/retros
- name: Build Go binary for OSX
run: GOOS=darwin GOARCH=arm64 go build -o bin/mac/osx-retros ./cmd/retros
- name: Build Go binary for Windows
run: GOOS=windows go build -o bin/windows/retros.exe ./cmd/retros
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
bin/linux/retros
bin/mac/osx-retros
bin/windows/retros.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release URL
run: echo "Uploaded release to ${{ steps.create_release.outputs.upload_url }}"