Skip to content

Commit

Permalink
ci: latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 5, 2024
1 parent a1d91b5 commit b5838db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0

on:
push:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:

steps:

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down Expand Up @@ -108,7 +110,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -121,12 +123,12 @@ jobs:
run: pip install gcovr

- run: cmake --preset coverage
- run: cmake --build --parallel --preset coverage
- run: cmake --build --preset coverage

- name: Code coverage
run: cmake --build --parallel --preset run-coverage
run: cmake --build --preset run-coverage

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-report-html
path: build-coverage/coverage/
4 changes: 3 additions & 1 deletion .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build

env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CTEST_NO_TESTS_ACTION: error

on:
push:
Expand Down
4 changes: 0 additions & 4 deletions options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ option(CMAKE_TLS_VERIFY "Verify TLS certificates" true)

include(GNUInstallDirs)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND PROJECT_IS_TOP_LEVEL)
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${PROJECT_BINARY_DIR}/local")
endif()

set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)

if(BUILD_SHARED_LIBS AND MSVC)
Expand Down

0 comments on commit b5838db

Please sign in to comment.