Skip to content

Commit

Permalink
fix: try clear package
Browse files Browse the repository at this point in the history
  • Loading branch information
mystringEmpty committed Feb 12, 2024
1 parent 6c11f04 commit 890b415
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
include:
- type: Win32
triplet: x86-windows-static
triplet_prefix: x86-windows
mono: ''
dll_sfx: windows.i386
- type: x64
triplet: x64-windows-static
triplet_prefix: x64-windows
mono: ''
dll_sfx: windows.amd64

Expand Down Expand Up @@ -47,7 +49,23 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}/vcpkg
run: bootstrap-vcpkg.bat


- name: Package Clear
uses: actions/delete-package-versions@v4
with:
package-name: vcpkg-cmake-config_${{ matrix.triplet_prefix }}
package-type: nuget
min-versions-to-keep: 1
token: ${{ secrets.GITHUB_TOKEN }}

- name: Package Clear All
uses: actions/delete-package-versions@v4
with:
package-name: '*'
package-type: nuget
min-versions-to-keep: 1
token: ${{ secrets.GITHUB_TOKEN }}

- name: 'Setup NuGet Credentials'
shell: 'bash'
# Replace <OWNER> with your organization name
Expand Down
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL Android)
else()
find_package(unofficial-libgit2 CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE unofficial::libgit2::libgit2)
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
find_package(Python3 COMPONENTS Development REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Python3::Python)
target_include_directories(${PROJECT_NAME} PRIVATE ${Python3_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE ${Python3_LIBRARIES})
endif()

if(NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")))
Expand Down

0 comments on commit 890b415

Please sign in to comment.