Skip to content

Commit

Permalink
Uploads source code to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 18, 2024
1 parent 8f692a8 commit a72be12
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ on:
- '.git*'

jobs:
checkout:
name: Checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Uploads source code
uses: actions/upload-artifact@v4
with:
name: src
path: src
mt4:
name: Installs platform (4)
uses: EA31337/EA-Tester/.github/workflows/platform-linux.yml@dev
Expand All @@ -30,22 +42,22 @@ jobs:
defaults:
run:
shell: powershell
working-directory: src
name: Compile EA
needs: [mt4, mt5]
needs: [checkout, mt4, mt5]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
submodules: recursive
name: src
path: src
- uses: actions/download-artifact@v4
with:
name: mt${{ matrix.version }}
path: .mt${{ matrix.version }}
- name: List MQL files
run: '(Get-ChildItem -Recurse -Path . -Include *.mq[45]).fullname'
shell: powershell

- name: Compiles EA
uses: fx31337/mql-compile-action@master
with:
Expand All @@ -60,10 +72,11 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: EA-Libre.ex${{ matrix.version }}
path: 'src/*.ex?'
path: src/*.ex?
strategy:
matrix:
version: [4, 5]

clean-up:
name: Clean-up
needs: [compile-ea]
Expand Down

0 comments on commit a72be12

Please sign in to comment.