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 f62756b
Showing 1 changed file with 35 additions and 20 deletions.
55 changes: 35 additions & 20 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,32 @@ 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 +65,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 +102,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 Expand Up @@ -134,13 +145,17 @@ jobs:
run:
shell: powershell
name: Compile Test
needs: [checkout, mt4, mt5]
needs: [checkout-classes, checkout-strategies, mt4, 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:
path: .
Expand Down

0 comments on commit f62756b

Please sign in to comment.