Skip to content

Commit

Permalink
GHA: Fixes compilation of some recent workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Apr 24, 2024
1 parent 18763c6 commit 90b290f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 48 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-exchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: ./.github/workflows/compile.yml
with:
artifact_prefix: mt
path: Exchange
skip_cleanup: true

Exchange-Tests-MQL4:
Expand Down
38 changes: 14 additions & 24 deletions .github/workflows/test-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
38 changes: 14 additions & 24 deletions .github/workflows/test-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 90b290f

Please sign in to comment.