-
-
Notifications
You must be signed in to change notification settings - Fork 4
138 lines (131 loc) · 3.39 KB
/
arma.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Arma
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: Checkout the source code
uses: actions/checkout@v2
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
with:
args: --directory src/ArmaScript
continue-on-error: true # No failure due to many false-positives
build-addon:
name: Addon
runs-on: ubuntu-18.04
steps:
- name: Checkout the source code
uses: actions/checkout@v2
- name: Install HEMTT
run: |
sudo curl --location --output /usr/local/bin/hemtt https://github.com/synixebrett/HEMTT/releases/download/v0.7.5/hemtt
sudo chmod +x /usr/local/bin/hemtt
- name: Build using HEMTT
run: |
cd src/ArmaScript
ln -s ../../.git .git
hemtt build --ci
- name: Upload
uses: actions/upload-artifact@v2
with:
name: addons
path: src/ArmaScript/addons/*.pbo
build-extension-windows-x64:
name: Extension (Windows 64 bit)
runs-on: windows-2019
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: |
cd src/ArmaExt
cmake -A x64 .
cmake --build .
- name: Upload
uses: actions/upload-artifact@v2
with:
name: TacControl_x64.dll
path: src/ArmaExt/release/@TacControl/Debug/TacControl_x64.dll
build-desktop:
name: Desktop
runs-on: windows-2019
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
submodules: true
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Build
run: |
cd src/DesktopClient
nuget restore
msbuild TacControl.sln
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Desktop
path: src/DesktopClient/bin/Debug
build-android:
name: Android
runs-on: macos-10.15
steps:
- name: Checkout the source code
uses: actions/checkout@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Build
run: |
cd src/AndroidClient/TacControl
nuget restore
msbuild TacControl.sln
msbuild /t:PackageForAndroid TacControl.Android/TacControl.Android.csproj
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Android
path: src/AndroidClient/TacControl/TacControl.Android/bin/Debug/com.dedmen.taccontrol.apk
package-mod:
name: Package
runs-on: ubuntu-18.04
needs:
- build-addon
- build-extension-windows-x64
- build-desktop
- build-android
steps:
- name: Download addon
uses: actions/download-artifact@v1
with:
name: addons
path: '@tc/addons'
- name: Download extension Windows 64 bit
uses: actions/download-artifact@v1
with:
name: TacControl_x64.dll
path: '@tc'
- name: Download desktop
uses: actions/download-artifact@v1
with:
name: Desktop
path: '@tc/desktop'
- name: Download Android
uses: actions/download-artifact@v1
with:
name: Android
path: '@tc/android'
- name: Upload
uses: actions/upload-artifact@v2
with:
name: '@tc'
path: '@tc'