Skip to content

Commit

Permalink
Add OpenSSL DLLs to Windows CI (#10)
Browse files Browse the repository at this point in the history
* Add OpenSSL DLLs to Windows CI build

* Set C standard to C99

* Fix C standard declaration
  • Loading branch information
gyk4j authored Aug 19, 2024
1 parent 0f55a0b commit 6ee19fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
New-Item -Path "$env:RUNNER_TEMP\upload\bin" -Name "c" -ItemType "directory"
Copy-Item "..\README.md" -Destination "$env:RUNNER_TEMP\upload\bin\c"
Copy-Item "build\Release\wsgup.exe" -Destination "$env:RUNNER_TEMP\upload\bin\c"
Copy-Item -Path "C:\Program Files\OpenSSL\bin\*.dll" -Destination "$env:RUNNER_TEMP\upload\bin\c"
- name: "Build C#"
run: |
Expand Down
4 changes: 3 additions & 1 deletion c/wsgup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.5.0)

project(wsgup VERSION 0.0.1 LANGUAGES C)

Expand Down Expand Up @@ -34,3 +34,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_link_libraries(${PROJECT_NAME} OpenSSL::Crypto cJSON)

set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99)

0 comments on commit 6ee19fa

Please sign in to comment.