-
Notifications
You must be signed in to change notification settings - Fork 59
86 lines (74 loc) · 1.83 KB
/
compile.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
---
name: Compile
# yamllint disable-line rule:truthy
on:
pull_request:
paths-ignore:
- '**.md'
- '.git*'
push:
paths-ignore:
- '**.md'
- '.git*'
jobs:
mt4:
name: Installs platform (4)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact_name: .mt4
version: 4
mt5:
name: Installs platform (5)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact_name: .mt5
version: 5
compile-ea:
defaults:
run:
shell: powershell
working-directory: src
name: Compile EA
needs: [mt4, mt5]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
name: .mt4
- uses: actions/download-artifact@v4
with:
name: .mt5
- name: List MQL files
run: '(Get-ChildItem -Recurse -Path . -Include *.mq[45]).fullname'
shell: powershell
- name: Compiles MQL4
uses: fx31337/mql-compile-action@master
with:
mt-path: .mt4
path: src\EA31337-Libre.mq4
verbose: true
- name: Compiles MQL5
uses: fx31337/mql-compile-action@master
with:
mt-path: .mt5
path: src\EA31337-Libre.mq5
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: EA-Libre
path: 'src/*.ex?'
clean-up:
name: Clean-up
needs: [compile-ea]
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v4
with:
name: mt?