-
Notifications
You must be signed in to change notification settings - Fork 28
46 lines (38 loc) · 922 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
38
39
40
41
42
43
44
45
46
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Build Linux AMD64
run: go build -v -o dwarf2json-linux-amd64
env:
GOOS: linux
GOARCH: amd64
- name: Build Windows AMD64
run: go build -v -o dwarf2json-windows-amd64.exe
env:
GOOS: windows
GOARCH: amd64
- name: Build Darwin AMD64
run: go build -v -o dwarf2json-darwin-amd64
env:
GOOS: darwin
GOARCH: amd64
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dwarf2json
path: |
dwarf2json-linux-amd64
dwarf2json-windows-amd64.exe
dwarf2json-darwin-amd64