-
Notifications
You must be signed in to change notification settings - Fork 6
93 lines (78 loc) · 2.38 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
mod:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: HEMTT Build
uses: docker://hemtt/hemtt:0.7.6
with:
entrypoint: hemtt
args: build --release
- name: Upload mod
uses: actions/upload-artifact@v1
with:
name: 'mod'
path: releases/1.0.0/@asp
extension-linux:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true
- 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_BUILD_TYPE=Release .. && make
- name: Upload Linux 32 bit
uses: actions/upload-artifact@v1
with:
name: ArmaScriptProfiler.so
path: build-linux32/src/ArmaScriptProfiler.so
extension-windows:
runs-on: windows-2019
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true
- 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
- name: Upload Windows 64 bit
uses: actions/upload-artifact@v1
with:
name: ArmaScriptProfiler_x64.dll
path: release/@ArmaScriptProfiler/intercept/Release/ArmaScriptProfiler_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: '@ArmaScriptProfiler'
- name: Download Linux 32 bit
uses: actions/download-artifact@v1
with:
name: ArmaScriptProfiler.so
path: '@ArmaScriptProfiler/intercept/'
- name: Download Windows 64 bit
uses: actions/download-artifact@v1
with:
name: ArmaScriptProfiler_x64.dll
path: '@ArmaScriptProfiler/intercept/'
- name: Upload built mod
uses: actions/[email protected]
with:
name: '@ArmaScriptProfiler'
path: '.'