Skip to content

GHA: Refactors Compile workflow #337

GHA: Refactors Compile workflow

GHA: Refactors Compile workflow #337

Workflow file for this run

---
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: mt4

Check failure on line 20 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: 20, Col: 17): Invalid input, artifact is not defined in the referenced workflow.
version: 4
mt5:
name: Installs platform (5)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
with:
artifact: 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: mt${{ matrix.version }}
path: .mt${{ matrix.version }}
- name: List MQL files
run: '(Get-ChildItem -Recurse -Path . -Include *.mq[45]).fullname'
shell: powershell
- name: Compiles EA
uses: fx31337/mql-compile-action@master
with:
mt-path: .mt?
path: src\EA31337-Libre.mq${{ matrix.version }}
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.ex${{ matrix.version }})
path: 'src/*.ex?'
strategy:
matrix:
version: [4, 5]
clean-up:
name: Clean-up
needs: [compile-ea]
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v4
with:
name: mt?