-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (43 loc) · 1.3 KB
/
go.yml
File metadata and controls
49 lines (43 loc) · 1.3 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
name: Go
on: [push, pull_request]
jobs:
windows:
runs-on: windows-latest
strategy:
matrix:
go: ['1.12', '1.13', '1.14']
name: Go ${{ matrix.go }} on Windows
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
shell: bash
run: |
go build -v -o testapp.exe ./testapp
- name: Test
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
dumpbin /exports testapp.exe > dumpbin_output.txt
grep -q AmdPowerXpressRequestHighPerformance "dumpbin_output.txt"
grep -q NvOptimusEnablement "dumpbin_output.txt"
macos:
runs-on: macOS-latest
strategy:
matrix:
go: ['1.12']
name: Go ${{ matrix.go }} on MacOS
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
run: |
go build -v -o test ./testapp