This GitHub Action compiles MQL programs.
For full documentation, please read: GitHub Actions Documentation.
This action is only supported on Windows images.
runs-on: windows-latest
steps:
- uses: fx31337/mql-compile-action@v2
runs-on: windows-latest
steps:
- uses: fx31337/mql-compile-action@v2.0.0
Note: Check Releases for more details.
runs-on: windows-latest
steps:
- uses: fx31337/mql-compile-action@master
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.
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: ..