-
Notifications
You must be signed in to change notification settings - Fork 7
114 lines (110 loc) · 3.21 KB
/
main.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Build and Test
on: push
jobs:
linux-build:
name: Linux ${{ matrix.name }}
runs-on: ubuntu-22.04
timeout-minutes: 20
continue-on-error: true
container:
image: ${{ matrix.image }}
strategy:
matrix:
include:
- image: openmama/openmama-dev:centos-7
package_type: rpm
distro: el
distro_version: 7
name: CentOS 7
- image: openmama/openmama-dev:centos-stream8
package_type: rpm
distro: centos
distro_version: 8
name: CentOS Stream 8
- image: openmama/openmama-dev:centos-stream9
package_type: rpm
distro: centos
distro_version: 9
name: CentOS Stream 9
- image: openmama/openmama-dev:ubuntu-18.04
package_type: deb
distro: ubuntu
distro_version: bionic
name: Ubuntu 18.04 LTS
- image: openmama/openmama-dev:ubuntu-20.04
package_type: deb
distro: ubuntu
distro_version: focal
name: Ubuntu 20.04 LTS
- image: openmama/openmama-dev:ubuntu-22.04
package_type: deb
distro: ubuntu
distro_version: jammy
name: Ubuntu 22.04 LTS
steps:
- name: Check out the code
uses: actions/checkout@v1
- name: Run Linux build
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: ./devops/build/ci-run.sh
- name: Find the package
run: 'echo PKG=`find ./dist -name "*.${{ matrix.package_type }}"` >> $GITHUB_ENV'
- name: Archive package as an artifact
uses: actions/upload-artifact@v1
with:
name: package
path: ${{ env.PKG }}
windows-build:
name: Windows ${{ matrix.name }}
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
include:
- os: windows-2019
platform: x86
generator: Visual Studio 16 2019
args: -A Win32
vcver: msvc2019
name: MSVC 2019 x86
- os: windows-2019
platform: x64
generator: Visual Studio 16 2019
args: -A x64
vcver: msvc2019
name: MSVC 2019 x64
- os: windows-2022
platform: x86
generator: Visual Studio 17 2022
args: -A Win32
vcver: msvc2022
name: MSVC 2022 x86
- os: windows-2022
platform: x64
generator: Visual Studio 17 2022
args: -A x64
vcver: msvc2022
name: MSVC 2022 x64
steps:
- name: Check out the code
uses: actions/checkout@v1
- name: Run Windows Build
run: ./devops/build/ci-run.bat
env:
PLATFORM: ${{ matrix.platform }}
GENERATOR: ${{ matrix.generator }}
EXTRA_ARGS: ${{ matrix.args }}
VCVER: ${{ matrix.vcver }}
- uses: actions/upload-artifact@v2
with:
name: package
path: '*.zip'
macos-build:
name: MacOS
runs-on: macos-latest
continue-on-error: true
steps:
- uses: actions/checkout@v1
- name: MacOS Build
run: ./devops/build/ci-run.macos.sh