-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (78 loc) · 1.78 KB
/
go.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Go
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
name: Build
runs-on: macos-latest
steps:
# - name: Set up Homebrew
# uses: Homebrew/actions/setup-homebrew@master
#
# - name: uninstall brew version of go
# run: brew uninstall --ignore-dependencies go
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
# - name: Set up portmidi
# run: brew install portmidi
- name: Check out code
uses: actions/checkout@v2
- name: Get dependencies
run: |
make installDependencies
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: make cibuild
- name: Test
run: make test
# - name: Archive
# uses: actions/upload-artifact@v2
# with:
# name: binaries
# path: |
# ./output/**/*
#
# uitest:
# name: UITest
# needs: build
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# working-directory: uitest
# strategy:
# matrix:
# os: [macos-latest]
# steps:
#
# - name: Check out code
# uses: actions/checkout@v2
#
# - name: Unarchive
# uses: actions/download-artifact@v2
# with:
# name: binaries
# path: ./output
#
# - name: chmod the binaries
# run: |
# find ../output -type f -exec chmod a+x {} \;
# find ../output -type f -ls
#
# - name: pre-provision the exe
# run: ../output/darwin-amd64/Synergize.app/Contents/MacOS/Synergize -PROVISION
#
# - name: SetupNode
# uses: actions/[email protected]
#
# - run: npm install
#
# - run: npm test