Skip to content

FX31337/MQL-Compile-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

MQL Compile Action

Release Status Status Status Telegram Channel Telegram Chat Edit

This GitHub Action compiles MQL programs.

For full documentation, please read: GitHub Actions Documentation.

Usage

This action is only supported on Windows images.

Latest release

runs-on: windows-latest
steps:
  - uses: fx31337/mql-compile-action@v2

Specific release

runs-on: windows-latest
steps:
  - uses: fx31337/[email protected]

Note: Check Releases for more details.

Latest development version

runs-on: windows-latest
steps:
  - uses: fx31337/mql-compile-action@master

Overriding default inputs

runs-on: windows-latest
steps:
  - uses: fx31337/mql-compile-action@master
    with:
        path: 'path/Dummy.mq5'
        include: '.'
        log-file: 'results.log'
        ignore-warnings: true
        mt-path: my/platform/path
        verbose: true

Note: From v2 releases, this action doesn't install platform by default.

Inputs

path (string)

Path to folder or file to compile.

Default: . (all files in the current folder are compiled).

path-ignore (string)

Path to folder or file for compiler to ignore.

Default: **/*.mqh (all .mqh files are ignored by default).

include (string)

Path to search for includes files.

Default: ``.

mt-path (string)

Platform path to use. Default: ..

ignore-warnings (bool)

Whether to ignore compilation warnings.

log-file (string)

Specifies log filename for compilation messages.

syntax-only (bool)

Whether to skip generating binary file and only check for syntax issues. Default: false.

init-platform (bool)

Whether to run terminal(64).exe which downloads general-purpose MQL4/5 includes, example scripts and EAs.

It is required if you want to use e.g., #include <Arrays/Array.mqh> and so on.

verbose (bool)

Enables verbose mode (to print more messages). Default: false.

working-directory (string)

Sets working directory where to run commands. Default: ..

Support