Skip to content

Commit

Permalink
CI: Fixes Compile workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 6, 2024
1 parent 0cd30c9 commit 28566c0
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: Compile

# Setting an environment variable with the value of a configuration variable.
env:
INDI_OTHER_WORKDIR: ${{ vars.INDI_OTHER_WORKDIR || 'indicators-other' }}

# yamllint disable-line rule:truthy
on:
pull_request:
Expand All @@ -17,6 +21,7 @@ on:
paths-ignore:
- '*.md'
- '.git*'
workflow_call:

jobs:
checkout-classes:
Expand All @@ -25,14 +30,21 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: v3.000.1
ref: v3.000.2
repository: EA31337/EA31337-classes
- name: Uploads source code
uses: actions/upload-artifact@v4
with:
name: src-classes
path: .

compile-indicators-other:
name: Compile Indicators (Other)
uses: EA31337/EA31337-Indicators-Other/.github/workflows/compile.yml@master
with:
artifact_prefix: io-mt
checkout_branch: v1.000

mt4:
name: Installs platform (4)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
Expand All @@ -41,6 +53,7 @@ jobs:
artifact_overwrite: true
skip_cleanup: true
version: 4

mt5:
name: Installs platform (5)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
Expand All @@ -55,7 +68,7 @@ jobs:
run:
shell: powershell
name: Compile
needs: [checkout-classes, mt4, mt5]
needs: [checkout-classes, compile-indicators-other, mt4, mt5]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -70,14 +83,11 @@ jobs:
pattern: .mt?
- name: Enables input mode
run: echo '#define __input__' > config/define.h
- name: Compile indicators
uses: fx31337/mql-compile-action@master
- uses: actions/download-artifact@v4
with:
include: .
mt-path: .mt${{ matrix.version }}
path: indicators-other/**/*.mq${{ matrix.version }}
verbose: true
- name: Compile strategy
merge-multiple: true
pattern: "*-indicators-ex${{ matrix.version }}"
- name: Compile
uses: fx31337/mql-compile-action@master
with:
include: .
Expand All @@ -88,11 +98,11 @@ jobs:
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
- run: Get-Location
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: Strategy
path: '**/Stg_*.ex[45]'
name: Strategy-ex${{ matrix.version }}
path: '**/Stg_*.ex${{ matrix.version }}'
strategy:
matrix:
version:
Expand Down

0 comments on commit 28566c0

Please sign in to comment.