Skip to content

Commit

Permalink
Set python3 virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
olszomal committed Oct 31, 2024
1 parent 5ae7a47 commit d673218
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ jobs:
python.exe -m pip install cryptography
- name: Configure CMake
run: cmake
run: |
source venv/bin/activate
cmake
-G "${{matrix.generator}}"
-S ${{github.workspace}}
-B ${{github.workspace}}/build
Expand Down
4 changes: 4 additions & 0 deletions cmake/CMakeTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

########## Configure ##########

set(Python3_FIND_VIRTUALENV FIRST)
include(FindPython3)

message(STATUS "VIRTUAL_ENV: ${VIRTUAL_ENV}")
message(STATUS "Python3_FIND_VIRTUALENV: ${Python3_FIND_VIRTUALENV}")

if(Python3_FOUND)
execute_process(
COMMAND ${Python3_EXECUTABLE} "check_cryptography.py"
Expand Down

0 comments on commit d673218

Please sign in to comment.