forked from Sparker95/Vindicta
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (76 loc) · 2.3 KB
/
devValidateTestBuildUpload.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
name: Dev Validate Test Build Upload
on:
push:
branches:
- development
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Validate Config
run: python3 tools/SQF-validate/config_style_checker.py
- name: Check for BOM
uses: arma-actions/bom-check@master
with:
path: 'src'
test:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Checkout the code
uses: actions/checkout@master
- name: Validate SQF with SQF-VM
run: |
cd src
New-Item .\config\user_local_config.hpp -ItemType File
cd ..\
.\tools\SQF-VM\sqfvm.exe -a --no-execute-print --disable-macro-warnings --load . -i D:\a\Vindicta\Vindicta\src\Tests\RunTests.sqf
build:
runs-on: windows-latest
timeout-minutes: 5
needs: [validate, test]
steps:
- name: Checkout the code
uses: actions/checkout@master
- name: Build Missions
run: '.\tools\Builder\buildMissions.ps1 -verPatch ${{ github.run_number }}_DEV'
- name: Build addons
run: '.\tools\Builder\buildAddons.ps1 -metaFileName meta_dev.cpp'
- name: Upload build addon artifact
uses: actions/upload-artifact@v2
with:
name: armaAddon
path: _build\addon\Vindicta
- name: Upload separate missions artifact
uses: actions/upload-artifact@v2
with:
name: separateMissions
path: _build\missions\separatePBO
upload:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [build]
steps:
- name: Download addon artifact
uses: actions/download-artifact@v2
with:
name: armaAddon
path: armaAddon
- name: Download separate missions artifact
uses: actions/download-artifact@v2
with:
name: separateMissions
path: separateMissions
- name: Publish to Steam Workshop
uses: arma-actions/workshop-upload@v1
with:
appId: '107410' # default
itemId: '2154322285' # https://steamcommunity.com/sharedfiles/filedetails/?id=2154322285
contentPath: 'armaAddon'
changelog: ""
env:
STEAM_USERNAME: ${{ secrets.STEAM_VIN_USER }}
STEAM_PASSWORD: ${{ secrets.STEAM_VIN_PW }}