Skip to content

Commit

Permalink
GHA: Compile: Refactors checkout logic using artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Apr 20, 2024
1 parent 67e84c8 commit 349c32a
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,31 @@ on:
- 'docs/**'

jobs:
checkout:
name: Checkout
checkout-classes:
name: Checkout Classes repo
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/[email protected]
with:
path: Include/EA31337-classes
ref: v3.000.1
repository: EA31337/EA31337-classes
- name: Uploads source code
uses: actions/upload-artifact@v4
with:
name: src-classes
path: .
checkout-strategies:
name: Checkout Strategies repo
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
path: Include/EA31337-strategies
ref: v2.000-dev
repository: EA31337/EA31337-strategies
submodules: recursive
- name: Uploads source code
uses: actions/upload-artifact@v4
with:
name: src
path: src
name: src-strategies
path: .
mt4:
name: Installs platform (4)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
Expand All @@ -62,13 +64,17 @@ jobs:
run:
shell: powershell
name: Compile MQL4
needs: [checkout, mt4, mt5]
needs: [checkout-classes, checkout-strategies, mt4]
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v4
with:
name: src
path: src
name: src-strategies
path: .
- uses: actions/download-artifact@v4
with:
name: src-classes
path: Include/EA31337-classes
- uses: actions/download-artifact@v4
with:
name: mt4
Expand All @@ -95,13 +101,17 @@ jobs:
run:
shell: powershell
name: Compile MQL5
needs: [checkout, mt4, mt5]
needs: [checkout-classes, checkout-strategies, mt5]
runs-on: windows-latest
steps:
- uses: actions/download-artifact@v4
with:
name: src
path: src
name: src-strategies
path: .
- uses: actions/download-artifact@v4
with:
name: src-classes
path: Include/EA31337-classes
- uses: actions/download-artifact@v4
with:
name: mt5
Expand Down

0 comments on commit 349c32a

Please sign in to comment.