Repository navigation
141 lines (114 loc) · 3.86 KB
/
Copy pathci.yml
File metadata and controls
141 lines (114 loc) · 3.86 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: CI
on: [push, pull_request]
jobs:
sqflint:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: arma-actions/sqflint@v1.0
name: Validate with SQFLint
mod:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: HEMTT Build
uses: docker://hemtt/hemtt:0.6.1
with:
entrypoint: hemtt
args: build --release
- name: Upload mod
uses: actions/upload-artifact@v1
with:
name: 'mod'
path: releases/1.0.0/@anrop
extension-linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Setup Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install conan
run: pip install conan==1.24.1
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y g++-multilib
- name: Build Linux 32 bit
run: mkdir build-linux32 && cd build-linux32 && cmake -DCMAKE_TOOLCHAIN_FILE=../linux32.cmake -DCMAKE_BUILD_TYPE=Release .. && make && make test
- name: Build Linux 64 bit
run: mkdir build-linux64 && cd build-linux64 && cmake -DCMAKE_BUILD_TYPE=Release .. && make && make test
- name: Upload Linux 32 bit
uses: actions/upload-artifact@v1
with:
name: libanrop_aar.so
path: build-linux32/lib/libanrop_aar.so
- name: Upload Linux 64 bit
uses: actions/upload-artifact@v1
with:
name: libanrop_aar_x64.so
path: build-linux64/lib/libanrop_aar_x64.so
extension-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@master
- name: Install conan
run: pip install conan==1.24.1
- name: Build Windows 32 bit
run: mkdir build-win32 && cd build-win32 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A Win32 .. && cmake --build . --config Release && cmake.exe --build . --target RUN_TESTS --config Release
- name: Build Windows 64 bit
run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release && cmake --build . --target RUN_TESTS --config Release
- name: Upload Windows 32 bit
uses: actions/upload-artifact@v1
with:
name: anrop_aar.dll
path: build-win32/bin/anrop_aar.dll
- name: Upload Windows 64 bit
uses: actions/upload-artifact@v1
with:
name: anrop_aar_x64.dll
path: build-win64/bin/anrop_aar_x64.dll
package:
runs-on: ubuntu-18.04
needs:
- extension-linux
- extension-windows
- mod
steps:
- name: Download mod
uses: actions/download-artifact@v1
with:
name: 'mod'
path: '@anrop_aar'
- name: Download Linux 32 bit
uses: actions/download-artifact@v1
with:
name: libanrop_aar.so
path: '@anrop_aar'
- name: Download Linux 64 bit
uses: actions/download-artifact@v1
with:
name: libanrop_aar_x64.so
path: '@anrop_aar'
- name: Rename Linux extension
run: |
set -e
mv @anrop_aar/libanrop_aar.so @anrop_aar/anrop_aar.so
mv @anrop_aar/libanrop_aar_x64.so @anrop_aar/anrop_aar_x64.so
- name: Download Windows 32 bit
uses: actions/download-artifact@v1
with:
name: anrop_aar.dll
path: '@anrop_aar'
- name: Download Windows 64 bit
uses: actions/download-artifact@v1
with:
name: anrop_aar_x64.dll
path: '@anrop_aar'
- name: Upload built mod
uses: actions/upload-artifact@1.0.0
with:
name: '@anrop_aar'
path: '.'