From 90b290f857f713add8b9281d178e4a1afcc1475e Mon Sep 17 00:00:00 2001 From: kenorb Date: Thu, 25 Apr 2024 00:49:57 +0100 Subject: [PATCH] GHA: Fixes compilation of some recent workflows --- .github/workflows/test-exchange.yml | 1 + .github/workflows/test-storage.yml | 38 +++++++++++------------------ .github/workflows/test-task.yml | 38 +++++++++++------------------ 3 files changed, 29 insertions(+), 48 deletions(-) diff --git a/.github/workflows/test-exchange.yml b/.github/workflows/test-exchange.yml index efd69b0a6..01fb46259 100644 --- a/.github/workflows/test-exchange.yml +++ b/.github/workflows/test-exchange.yml @@ -21,6 +21,7 @@ jobs: uses: ./.github/workflows/compile.yml with: artifact_prefix: mt + path: Exchange skip_cleanup: true Exchange-Tests-MQL4: diff --git a/.github/workflows/test-storage.yml b/.github/workflows/test-storage.yml index 327fce7cd..3dca5b58d 100644 --- a/.github/workflows/test-storage.yml +++ b/.github/workflows/test-storage.yml @@ -14,36 +14,21 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Storage/tests' - verbose: true - - name: Print compiled files - run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' - shell: powershell - - name: Upload artifacts (MQL4) - uses: actions/upload-artifact@v2 - with: - name: files-ex4 - path: '**/*.ex4' - - name: Upload artifacts (MQL5) - uses: actions/upload-artifact@v2 - with: - name: files-ex5 - path: '**/*.ex5' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + path: Storage + skip_cleanup: true Storage-Tests-MQL4: defaults: run: shell: bash working-directory: Storage/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: @@ -57,3 +42,8 @@ jobs: uses: fx31337/mql-tester-action@master with: Script: ${{ matrix.test }} + + cleanup: + name: Clean-up + needs: [compile] + uses: ./.github/workflows/cleanup.yml diff --git a/.github/workflows/test-task.yml b/.github/workflows/test-task.yml index faccb308a..1b68d1c20 100644 --- a/.github/workflows/test-task.yml +++ b/.github/workflows/test-task.yml @@ -14,36 +14,21 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Task/tests' - verbose: true - - name: Print compiled files - run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' - shell: powershell - - name: Upload artifacts (MQL4) - uses: actions/upload-artifact@v2 - with: - name: files-ex4 - path: '**/*.ex4' - - name: Upload artifacts (MQL5) - uses: actions/upload-artifact@v2 - with: - name: files-ex5 - path: '**/*.ex5' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + path: Task + skip_cleanup: true Task-Tests-MQL4: defaults: run: shell: bash working-directory: Task/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: @@ -65,3 +50,8 @@ jobs: uses: fx31337/mql-tester-action@master with: Script: ${{ matrix.test }} + + cleanup: + name: Clean-up + needs: [compile] + uses: ./.github/workflows/cleanup.yml