-
Notifications
You must be signed in to change notification settings - Fork 6
71 lines (60 loc) · 1.94 KB
/
ci.yml
File metadata and controls
71 lines (60 loc) · 1.94 KB
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
name: build
on:
pull_request:
branches:
- '*'
jobs:
all:
name: CI
strategy:
fail-fast: true # saves ci time, won't be worth it if it even runs other platform
matrix:
os: [ ubuntu-20.04, macos-latest ]
go-version: [ 1.16.0 ]
target: [ 'all' ]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
stable: 'false'
go-version: ${{ matrix.go-version }}
id: go
- name: Setup Go binary path
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Setup Flutter Beta
uses: subosito/flutter-action@v1
with:
channel: beta
- name: Git line endings
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Check out sys-share code into the Go module directory
uses: actions/checkout@v2
with:
ref: master
repository: amplify-edge/sys-share
path: ${{ github.workspace }}/go/src/github.com/amplify-edge/sys-share
- name: Check out sys code into the Go modules directory
uses: actions/checkout@v2
with:
ref: master
repository: amplify-edge/sys
path: ${{ github.workspace }}/go/src/github.com/amplify-edge/sys
- name: Check out mod code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
- name: make ${{ matrix.target }}
run: |
make $target
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
target: ${{ matrix.target }}
timeout-minutes: 20