-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (28 loc) · 872 Bytes
/
build.yml
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
name: build
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ~1.20
- name: Checkout code
uses: actions/checkout@v3
- name: Download Go modules
run: go mod download
- name: Build
run: go build -v -o rblx_rich_presence-${{ runner.os }}${{ runner.os == 'Windows' && '.exe' || '' }} ./...
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rblx_rich_presence-${{ runner.os }}${{ runner.os == 'Windows' && '.exe' || '' }}
path: ./rblx_rich_presence-${{ runner.os }}${{ runner.os == 'Windows' && '.exe' || '' }}