From cc74762c8002daf2a60b534bd1763fa1e4c40ed4 Mon Sep 17 00:00:00 2001 From: Martin Molinero Date: Fri, 13 Dec 2024 10:09:25 -0300 Subject: [PATCH] Dotnet 9 --- .github/workflows/gh-actions.yml | 29 ++++++++++++++----- ...QuantConnect.BinanceBrokerage.Tests.csproj | 10 ++++--- ...antConnect.BinanceBrokerage.ToolBox.csproj | 2 +- .../QuantConnect.BinanceBrokerage.csproj | 2 +- 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml index 2535116..b242b41 100644 --- a/.github/workflows/gh-actions.yml +++ b/.github/workflows/gh-actions.yml @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: QC_BINANCE_API_KEY: ${{ secrets.QC_BINANCE_API_KEY }} QC_BINANCE_API_SECRET: ${{ secrets.QC_BINANCE_API_SECRET }} @@ -15,10 +15,17 @@ jobs: QC_JOB_USER_ID: ${{ secrets.JOB_USER_ID }} QC_API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }} QC_JOB_ORGANIZATION_ID: ${{ secrets.JOB_ORGANIZATION_ID }} - container: - image: quantconnect/lean:foundation steps: - - uses: actions/checkout@v2 + - 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: Checkout Lean Same Branch id: lean-same-branch @@ -39,8 +46,14 @@ jobs: - name: Move Lean run: mv Lean ../Lean - - name: Build - run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.BinanceBrokerage.sln + - uses: addnab/docker-run-action@v3 + with: + image: quantconnect/lean:foundation + options: --workdir /__w/Lean.Brokerages.Binance/Lean.Brokerages.Binance -v /home/runner/work:/__w - - name: Run Tests - run: dotnet test ./QuantConnect.BinanceBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Binance.Tests.dll + shell: bash + run: | + # name: Build + dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.BinanceBrokerage.sln && \ + # name: Run Tests + dotnet test ./QuantConnect.BinanceBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Binance.Tests.dll diff --git a/QuantConnect.BinanceBrokerage.Tests/QuantConnect.BinanceBrokerage.Tests.csproj b/QuantConnect.BinanceBrokerage.Tests/QuantConnect.BinanceBrokerage.Tests.csproj index b1bd983..f719ebb 100644 --- a/QuantConnect.BinanceBrokerage.Tests/QuantConnect.BinanceBrokerage.Tests.csproj +++ b/QuantConnect.BinanceBrokerage.Tests/QuantConnect.BinanceBrokerage.Tests.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 false Copyright © 2021 @@ -18,13 +18,15 @@ - - + + all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/QuantConnect.BinanceBrokerage.ToolBox/QuantConnect.BinanceBrokerage.ToolBox.csproj b/QuantConnect.BinanceBrokerage.ToolBox/QuantConnect.BinanceBrokerage.ToolBox.csproj index 857cb47..a4a3b23 100644 --- a/QuantConnect.BinanceBrokerage.ToolBox/QuantConnect.BinanceBrokerage.ToolBox.csproj +++ b/QuantConnect.BinanceBrokerage.ToolBox/QuantConnect.BinanceBrokerage.ToolBox.csproj @@ -4,7 +4,7 @@ Release AnyCPU Exe - net6.0 + net9.0 Copyright © 2021 bin\$(Configuration)\ QuantConnect.Brokerages.Binance.ToolBox diff --git a/QuantConnect.BinanceBrokerage/QuantConnect.BinanceBrokerage.csproj b/QuantConnect.BinanceBrokerage/QuantConnect.BinanceBrokerage.csproj index bba35b2..0e882ab 100644 --- a/QuantConnect.BinanceBrokerage/QuantConnect.BinanceBrokerage.csproj +++ b/QuantConnect.BinanceBrokerage/QuantConnect.BinanceBrokerage.csproj @@ -2,7 +2,7 @@ Release AnyCPU - net6.0 + net9.0 QuantConnect.Brokerages.Binance QuantConnect.Brokerages.Binance QuantConnect.Brokerages.Binance