-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (37 loc) · 1.11 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
name: Go
# Augmented from internal Gitlab CI/CD, sorry if imperfect
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.15
- name: Mkdir artifacts directory
run: mkdir -p artifacts
- name: Get bar
run: go get github.com/superhawk610/bar
- name: Get AWS
run: go get github.com/aws/aws-sdk-go/aws
- name: Get AWS Session
run: go get github.com/aws/aws-sdk-go/aws/session
- name: Get TTY depends
run: go get github.com/mattn/go-isatty
- name: Get EBS API
run: go get github.com/aws/aws-sdk-go/service/ebs
- name: Get EC2 API
run: go get github.com/aws/aws-sdk-go/service/ec2
- name: Build wrapper script
run: find . -name "*.go" |xargs -I% bash build.sh %
- name: Upload a build artifact
uses: actions/[email protected]
with:
name: Automatic build
path: artifacts