diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e33c924..da0bbfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,32 +6,28 @@ on: pull_request: branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: - runs-on: ubuntu-24.04 + runs-on: self-hosted + container: + image: quantconnect/lean:foundation + options: --cpus 12 --memory 12g steps: - name: Checkout uses: actions/checkout@v2 - - name: Liberate disk space - uses: jlumbroso/free-disk-space@main - with: - tool-cache: true - large-packages: false - docker-images: false - swap-storage: false + - name: Run build and tests + run: | + # Build Data Source + dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Build Tests + dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Run Tests + dotnet test ./tests/bin/Release/net10.0/Tests.dll && \ + # Build Data Processing + dotnet build ./DataProcessing/DataProcessing.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - uses: addnab/docker-run-action@v3 - with: - image: quantconnect/lean:foundation - options: --workdir /__w/Lean.DataSource.QuiverQuantCongressTrading/Lean.DataSource.QuiverQuantCongressTrading -v /home/runner/work:/__w - shell: bash - run: | - # Build Data Source - dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ - # Build Tests - dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ - # Run Tests - dotnet test ./tests/bin/Release/net10.0/Tests.dll && \ - # Build Data Processing - dotnet build ./DataProcessing/DataProcessing.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1