forked from Sparker95/Vindicta
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 1.89 KB
/
build-dev.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
name: Build Dev
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: 'Vindicta.Altis'
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 Vindicta.Altis
New-Item .\config\user_local_config.hpp -ItemType File
..\tools\SQF-VM\sqfvm.exe -a --no-execute-print --disable-macro-warnings --load . -i D:\a\Vindicta\Vindicta\Vindicta.Altis\Tests\RunTests.sqf
build:
runs-on: windows-latest
timeout-minutes: 5
needs: [validate, test]
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Build
run: |
$env:RUST_BACKTRACE=1
cd Vindicta-Addon
.\tools\buildv2.ps1 ${{ github.run_number }}
- uses: actions/upload-artifact@v1
with:
name: build
path: Vindicta-Addon/release
- uses: actions/upload-artifact@v1
with:
name: dev
path: Vindicta-Addon/dev
upload:
needs: [build]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Download dev
uses: actions/download-artifact@v1
with:
name: dev
- name: Upload ftp
uses: sebastianpopp/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: "dev"
remoteDir: "/ugs-eu-germany-1.armahosts.com_2322/mpmissions"