Skip to content

Adds with variables #160

Adds with variables

Adds with variables #160

Workflow file for this run

---
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:
Platform:
uses: EA31337/ansible-role-metatrader/.github/workflows/platform.yml@dev
with:
artifact: mt4
version: 4
Compile:
defaults:
run:
shell: powershell
needs: [Install-MT4-Linux]

Check failure on line 37 in .github/workflows/compile.yml

View workflow run for this annotation

GitHub Actions / Compile

Invalid workflow file

The workflow is not valid. .github/workflows/compile.yml (Line: 37, Col: 13): Job 'Compile' depends on unknown job 'Install-MT4-Linux'.
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v4
with:
name: mt4
path: .mt4
- uses: actions/download-artifact@v4
with:
name: mt5
path: .mt5
- 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
- name: Compile MQL4
uses: fx31337/mql-compile-action@master
with:
include: .
init-platform: true
mt-path: .mt4
path: ${{ env.INDI_OTHER_WORKDIR }}/**/*.mq?
verbose: true
- name: Compile MQL5
uses: fx31337/mql-compile-action@master
with:
include: .
init-platform: true
mt-path: .mt5
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]