forked from snowflakedb/libsnowflakeclient
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (87 loc) · 2.9 KB
/
build-test.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build and Test
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- '**'
jobs:
build-test-linux:
name: Build-Test-Linux
runs-on: ubuntu-16.04
strategy:
matrix:
build_type: [ 'Debug', 'Release' ]
cloud_provider: [ 'AWS', 'AZURE', 'GCP' ]
steps:
- uses: actions/checkout@v1
- name: Build
shell: bash
env:
BUILD_TYPE: ${{ matrix.build_type }}
WHITESOURCE_API_KEY: ${{ secrets.WHITESOURCE_API_KEY }}
run: ci/build_linux.sh
- uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Test
shell: bash
env:
BUILD_TYPE: ${{ matrix.build_type }}
CLOUD_PROVIDER: ${{ matrix.cloud_provider }}
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: ci/test_linux.sh
build-test-win:
name: Build-Test-Win
runs-on: windows-2019
strategy:
matrix:
platform: [ 'x64', 'x86' ]
build_type: [ 'Debug', 'Release' ]
vs_version: [ 'VS16' ]
cloud_provider: [ 'AWS', 'AZURE', 'GCP' ]
steps:
- uses: actions/checkout@v1
- name: Build
shell: cmd
env:
PLATFORM: ${{ matrix.platform }}
BUILD_TYPE: ${{ matrix.build_type }}
VS_VERSION: ${{ matrix.vs_version }}
run: ci\build_win.bat
- uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Test
shell: cmd
env:
PLATFORM: ${{ matrix.platform }}
BUILD_TYPE: ${{ matrix.build_type }}
VS_VERSION: ${{ matrix.vs_version }}
CLOUD_PROVIDER: ${{ matrix.cloud_provider }}
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: ci\test_win.bat
# build-test-mac:
# name: Build-Test-Mac
# runs-on: macos-10.15
# strategy:
# matrix:
# build_type: [ 'Debug' ]
# cloud_provider: [ 'AWS' ]
# steps:
# - uses: actions/checkout@v1
# - name: Install Homebrew Bash
# shell: bash
# run: brew install bash
# - name: Build
# shell: bash
# env:
# PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
# BUILD_TYPE: ${{ matrix.build_type }}
# CLOUD_PROVIDER: ${{ matrix.cloud }}
# run: /usr/local/bin/bash ./ci/build_mac.sh