From e3bae128192c8dab84db338ea1da5ed7ab33a7a4 Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Thu, 30 Nov 2023 18:29:17 -0700 Subject: [PATCH] CI: Use CMake presets. --- .github/workflows/sub_buildUbuntu2004.yml | 5 +++-- .github/workflows/sub_buildWindows.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sub_buildUbuntu2004.yml b/.github/workflows/sub_buildUbuntu2004.yml index e479eb1c75..7bc91f38e2 100644 --- a/.github/workflows/sub_buildUbuntu2004.yml +++ b/.github/workflows/sub_buildUbuntu2004.yml @@ -60,7 +60,7 @@ jobs: CXX: /usr/bin/g++ #CC: /usr/bin/clang #CXX: /usr/bin/clang++ - builddir: ${{ github.workspace }}/build/ + builddir: ${{ github.workspace }}/build/release/ logdir: /tmp/logs/ reportdir: /tmp/report/ reportfilename: ${{ inputs.artifactBasename }}-report.md @@ -173,6 +173,7 @@ jobs: - name: CMake Configure uses: ./.github/workflows/actions/linux/configure with: + extraParameters: --preset release builddir: ${{ env.builddir }} logFile: ${{ env.logdir }}Cmake.log errorFile: ${{ env.logdir }}CmakeErrors.log @@ -193,7 +194,7 @@ jobs: uses: ./.github/workflows/actions/runPythonTests with: testDescription: "CLI tests on build dir" - testCommand: ${{ env.builddir }}bin/FreeCADCmd -t 0 + testCommand: ${{ env.builddir }}/bin/FreeCADCmd -t 0 logFile: ${{ env.logdir }}TestCLIBuild.log reportFile: ${{env.reportdir}}${{ env.reportfilename }} - name: FreeCAD GUI tests on build dir diff --git a/.github/workflows/sub_buildWindows.yml b/.github/workflows/sub_buildWindows.yml index b32887b1ef..e899d3c7a1 100644 --- a/.github/workflows/sub_buildWindows.yml +++ b/.github/workflows/sub_buildWindows.yml @@ -52,7 +52,7 @@ jobs: #CCACHE_SLOPPINESS: "pch_defines,time_macros" # Can't get PCH to work on Windows CCACHE_LOGFILE: C:/logs/ccache.log ## Have to use C:\ because not enough space on workspace drive - builddir: C:/FC/build/ + builddir: C:/FC/build/release/ libpackdir: C:/FC/libpack/ ccachebindir: C:/FC/ccache/ logdir: C:/logs/ @@ -104,6 +104,7 @@ jobs: - name: Configuring CMake run: > cmake -B"${{ env.builddir }}" . + --preset release -DCMAKE_VS_NO_COMPILE_BATCHING=ON -DCMAKE_BUILD_TYPE=Release -DFREECAD_USE_PCH=OFF