Skip to content

Commit

Permalink
Have github actions use the cmake presets
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaichAlonso committed Feb 18, 2024
1 parent 36e8db0 commit 853ea4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
Expand All @@ -28,13 +24,15 @@ jobs:
# # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset ci-x64-windows-vs2022-release

- name: Build
working-directory: ${{github.workspace}}
shell: pwsh
run: ./build.ps1
run: cmake --build --preset ci-x64-windows-vs2022-release

- name: Test
working-directory: ${{github.workspace}}
shell: pwsh
run: ./run.ps1
run: ctest --preset ci-x64-windows-vs2022-release

10 changes: 0 additions & 10 deletions build.ps1

This file was deleted.

7 changes: 0 additions & 7 deletions run.ps1

This file was deleted.

0 comments on commit 853ea4a

Please sign in to comment.