Skip to content

Commit

Permalink
Update build_cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wcbonner authored Sep 19, 2023
1 parent 4f969ea commit fe8fbf7
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,10 @@ jobs:
run: sudo apt-get install -y cmake ninja-build libbluetooth-dev

- name: Configure
shell: cmake -P {0}
run: |
set(ENV{CC} ${{ matrix.config.cc }})
set(ENV{CXX} ${{ matrix.config.cxx }})
execute_process(
COMMAND cmake
-S .
-B build
-D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
-G Ninja
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()
run: cmake -S . -B build

- name: Build
shell: cmake -P {0}
run: |
set(ENV{NINJA_STATUS} "[%f/%t %o/sec] ")
execute_process(
COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake --build build
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()
run: cmake --build build

- name: Run tests
shell: cmake -P {0}
Expand Down

0 comments on commit fe8fbf7

Please sign in to comment.