-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (64 loc) · 1.65 KB
/
check_pre-merge_sprint.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
name: sprint pre-merge check
on:
push:
branches:
- features/sprint*
- feature/ci*
paths-ignore:
- 'README.md'
- '*.dockerfile'
- '*.json'
- 'LICENSE'
- 'pc/**'
pull_request:
branches:
- features/sprint*
jobs:
cmake-build:
name: cmake build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-10.15, windows-2019, ubuntu-20.04, ubuntu-18.04]
go-version: [1.16.x, 1.17.x]
exclude:
- os: macos-10.15
go-version: 1.17.x
include:
- os: windows-2019
generator: MSYS Makefiles
- os: macos-10.15
generator: Unix Makefiles
- os: ubuntu-20.04
generator: Unix Makefiles
- os: ubuntu-18.04
generator: Unix Makefiles
steps:
- name: setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
- name: cmake-generate
run: cmake -S . -B build -G "${{ matrix.generator }}" -DENABLE_SHARED=on -DENABLE_TESTS=off -DTARGET_RPATH="/usr/local/lib;/usr/local/lib64;./build/Release"
- name: cmake-build
run: |
cmake --version
cmake --build build --config Release --parallel 2
- name: go-mod
run: go mod download
- name: go-build
run: go build
- name: go_test-windows
if: runner.os == 'Windows'
run: .\go_test.bat
- name: go_test-mac
if: runner.os == 'macOS'
run: |
cd build
sudo make install
cd ..
./go_test_installed.sh
- name: go_test-ubuntu
if: runner.os == 'Linux'
run: ./go_test.sh