-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (46 loc) · 1.26 KB
/
create-fself.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
47
48
49
50
51
52
53
54
55
56
57
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: create-fself
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Setup build directory
run: |
mkdir build
- name: Build windows version
run: |
cd cmd/create-fself
GOOS=windows go build -o ../../build/create-fself.exe -modfile=go-linux.mod
- name: Build linux version
run: |
cd cmd/create-fself
go build -o ../../build/create-fself -modfile=go-linux.mod
- name: Build macOS version
run: |
cd cmd/create-fself
GOOS=darwin go build -o ../../build/create-fself-macos -modfile=go-linux.mod
- name: Upload windows version
uses: actions/upload-artifact@v2
with:
name: create-fself.exe
path: build/create-fself.exe
- name: Upload linux version
uses: actions/upload-artifact@v2
with:
name: create-fself
path: build/create-fself
- name: Upload macOS version
uses: actions/upload-artifact@v2
with:
name: create-fself-macos
path: build/create-fself-macos