-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (40 loc) · 1.04 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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
env:
VARNAM_UPSTREAM: https://varnam.subinsb.com
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Build
run: make
- name: Set env
run: echo "VARNAM_VST_DIR=$(echo $(realpath schemes))" >> $GITHUB_ENV
- name: Download schemes
run: |
mkdir schemes
wget -O $VARNAM_VST_DIR/ml.vst "$VARNAM_UPSTREAM/languages/ml/download"
wget -O $VARNAM_VST_DIR/ml-inscript.vst "$VARNAM_UPSTREAM/languages/ml-inscript/download"
- name: Test
run: make test
- name: Make Zip
run: |
make
make release
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: govarnam
path: "*.zip"