From d3cca8230e3f92db1158c9eac9141f031c51238f Mon Sep 17 00:00:00 2001 From: kenorb Date: Thu, 22 Aug 2024 18:16:41 +0100 Subject: [PATCH] GHA: Compile: Improves compilation for strategy and indicators --- .github/workflows/compile.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1f8b37d..b0b3731 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -70,14 +70,19 @@ jobs: pattern: .mt? - name: Enables input mode run: echo '#define __input__' > config/define.h - - name: Compile + - name: Compile indicators uses: fx31337/mql-compile-action@master with: include: . mt-path: .mt${{ matrix.version }} - path: | - "**/Stg_*.mq${{ matrix.version }}" - indicators-other/**/*.mq${{ matrix.version }} + path: indicators-other/**/*.mq${{ matrix.version }} + verbose: true + - name: Compile strategy + uses: fx31337/mql-compile-action@master + with: + include: . + mt-path: .mt${{ matrix.version }} + path: "**/Stg_*.mq${{ matrix.version }}" verbose: true - name: List compiled files run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' @@ -85,6 +90,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v2 with: + if-no-files-found: error name: Strategy path: '**/Stg_*.ex[45]' strategy: