-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHA: Compile: Refactors checkout logic using artifacts
- Loading branch information
Showing
1 changed file
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|