-
Notifications
You must be signed in to change notification settings - Fork 5
116 lines (111 loc) · 3.05 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
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
---
name: Compile
# yamllint disable-line rule:truthy
on:
pull_request:
branches:
- 'master'
- 'dev*'
paths-ignore:
- '*.md'
- '.git*'
push:
branches:
- 'master'
- 'dev*'
paths-ignore:
- '*.md'
- '.git*'
workflow_call:
env:
# Setting an environment variable with the value of a configuration variable.
INDI_OTHER_WORKDIR: ${{ vars.INDI_OTHER_WORKDIR || 'indicators-other' }}
jobs:
mt4:
name: Installs platform
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact: mt4
version: 4
mt5:
name: Installs platform
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact: mt5
version: 5
compile-mq4:
defaults:
run:
shell: powershell
name: Compile MQL4
needs: [mt4]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
path: ${{ env.INDI_OTHER_WORKDIR }}
ref: ${{ github.head_ref || github.ref_name }}
repository: EA31337/EA31337-indicators-other
- uses: actions/checkout@v3
with:
path: Include/EA31337-classes
ref: v3.000.1
repository: EA31337/EA31337-classes
- uses: actions/download-artifact@v4
with:
name: mt4
path: .platform
- name: Compile MQL4
uses: fx31337/mql-compile-action@master
with:
include: .
init-platform: true
mt-path: .platform
path: ${{ env.INDI_OTHER_WORKDIR }}/**/*.mq?
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
- run: Get-Location
- name: Upload indicator artifacts
uses: actions/upload-artifact@v3
with:
name: indicators-other
path: ${{ env.INDI_OTHER_WORKDIR }}/**/*.ex[45]
compile-mq5:
defaults:
run:
shell: powershell
name: Compile MQL5
needs: [mt5]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
path: ${{ env.INDI_OTHER_WORKDIR }}
ref: ${{ github.head_ref || github.ref_name }}
repository: EA31337/EA31337-indicators-other
- uses: actions/checkout@v3
with:
path: Include/EA31337-classes
ref: v3.000.1
repository: EA31337/EA31337-classes
- uses: actions/download-artifact@v4
with:
name: mt5
path: .platform
- name: Compile MQL5
uses: fx31337/mql-compile-action@master
with:
include: .
init-platform: true
mt-path: .platform
path: ${{ env.INDI_OTHER_WORKDIR }}/**/*.mq5
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
- run: Get-Location
- name: Upload indicator artifacts
uses: actions/upload-artifact@v3
with:
name: indicators-other
path: ${{ env.INDI_OTHER_WORKDIR }}/**/*.ex[45]