From c94c8b035583846ff9ca94a1bee4b3806d69f9dc Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Sat, 12 Oct 2024 22:02:19 +0300 Subject: [PATCH] imp - Build workflows ACTUALLY use scripts --- To increase build consistency, we've made all the build workflows (except those that are exclusive to Launchpad) actually use Makefile (Linux or macOS) or the build script (Windows) --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- .github/workflows/build-rel.yml | 8 ++++++-- .github/workflows/build.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-rel.yml b/.github/workflows/build-rel.yml index 369740d93..ec934249e 100644 --- a/.github/workflows/build-rel.yml +++ b/.github/workflows/build-rel.yml @@ -22,8 +22,12 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - - name: Solution Compilation - run: dotnet build -maxCpuCount:1 --configuration Release + - name: Solution Compilation (Windows) + if: matrix.runs-on == 'windows-latest' + run: cd tools ; ./build.cmd ; cd .. + - name: Solution Compilation (Unix) + if: matrix.runs-on != 'windows-latest' + run: make - name: Testing run: dotnet test --no-build --configuration Release - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39629ec1d..df2a18c3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,8 +22,12 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - - name: Solution Compilation - run: dotnet build -maxCpuCount:1 --configuration Debug + - name: Solution Compilation (Windows) + if: matrix.runs-on == 'windows-latest' + run: cd tools ; ./build.cmd Debug ; cd .. + - name: Solution Compilation (Unix) + if: matrix.runs-on != 'windows-latest' + run: make dbg - name: Testing run: dotnet test --no-build --configuration Debug - uses: actions/upload-artifact@v4