Skip to content

Commit

Permalink
Tweak how CMake is run in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Jan 15, 2025
1 parent 9b6ec47 commit 1e57ea1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ jobs:
- name: Run CMake
run: |
mkdir build
cd build
cmake .. -DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
make all
cmake \
-DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" \
-DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" \
-B build
cmake --build build
- name: Run tests
run: ctest --test-dir build --output-on-failure
Expand Down Expand Up @@ -157,10 +158,12 @@ jobs:
- name: Run CMake
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A ${{ matrix.platform }} -DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}"
cmake --build . --config ${{ env.MSVC_CONFIG }}
cmake -G "Visual Studio 16 2019" `
-A ${{ matrix.platform }} `
-DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" `
-DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" `
-B build
cmake --build build --config ${{ env.MSVC_CONFIG }}
- name: Run tests
run: ctest --test-dir build --build-config ${{ env.MSVC_CONFIG }} --output-on-failure
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ jobs:
- name: Run CMake
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A ${{ matrix.platform }} -DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" -DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}"
cmake --build . --config ${{ env.MSVC_CONFIG }}
cmake -G "Visual Studio 16 2019" `
-A ${{ matrix.platform }} `
-DBOOST_ROOT="${{ steps.get-boost.outputs.root }}" `
-DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}" `
-B build
cmake --build build --config ${{ env.MSVC_CONFIG }}
- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 1e57ea1

Please sign in to comment.