From ea917b715de7aea7ae081897e31b9d36e40aac2d Mon Sep 17 00:00:00 2001 From: cropinghigh indir Date: Mon, 2 Dec 2024 16:56:58 +0300 Subject: [PATCH] windows workflow test --- .github/workflows/build_all.yml | 21 +++++++++++---------- .github/workflows/sdrpp_module_hack.cmake | 6 +++--- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 51b90fa..2b67473 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -64,21 +64,22 @@ jobs: - name: Unpack SDR++ source and core lib run: mkdir sdrpp_lib ; 7z x master.zip -osdrpp_lib ; 7z x sdrpp_windows_x64.zip -osdrpp_lib ; cp .github/workflows/sdrpp_module_hack.cmake ./ - name: Prepare MinGW - run: C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-tools" + run: C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-binutils mingw-w64-x86_64-tools" - name: Generate .def file working-directory: sdrpp_lib/sdrpp_windows_x64 run: C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "gendef sdrpp_core.dll" - name: Generate .lib file working-directory: sdrpp_lib/sdrpp_windows_x64 - run: | - $path = "C:/Program Files/Microsoft Visual Studio" - $contents = Get-ChildItem -Path $path -Force -Recurse -Directory | Select-Object -First 1 - $path = $path + "/" + $contents.Name + "/Enterprise/VC/Tools/MSVC" - $path - $contents = Get-ChildItem -Path $path -Force -Recurse -Directory | Select-Object -First 1 - $path = $path + "/" + $contents.Name + "/bin/HostX64/x64/Lib.exe" - $path - & $path /DEF:sdrpp_core.def + # run: | + # $path = "C:/Program Files/Microsoft Visual Studio" + # $contents = Get-ChildItem -Path $path -Force -Recurse -Directory | Select-Object -First 1 + # $path = $path + "/" + $contents.Name + "/Enterprise/VC/Tools/MSVC" + # $path + # $contents = Get-ChildItem -Path $path -Force -Recurse -Directory | Select-Object -First 1 + # $path = $path + "/" + $contents.Name + "/bin/HostX64/x64/Lib.exe" + # $path + # & $path /DEF:sdrpp_core.def + run: C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64 -c "x86_64-w64-mingw32-dlltool -d sdrpp_core.def -l sdrpp_core.lib" - name: Export GitHub Actions cache environment variables uses: actions/github-script@v7 with: diff --git a/.github/workflows/sdrpp_module_hack.cmake b/.github/workflows/sdrpp_module_hack.cmake index af16429..e8c9abd 100644 --- a/.github/workflows/sdrpp_module_hack.cmake +++ b/.github/workflows/sdrpp_module_hack.cmake @@ -41,9 +41,9 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") # Set compile arguments target_compile_options(${PROJECT_NAME} PRIVATE ${SDRPP_MODULE_COMPILER_FLAGS}) -if (MSVC) - target_link_options(${PROJECT_NAME} PRIVATE /FORCE:UNRESOLVED) -endif () +# if (MSVC) +# target_link_options(${PROJECT_NAME} PRIVATE /FORCE:UNRESOLVED) +# endif () # Install directives install(TARGETS ${PROJECT_NAME} DESTINATION lib/sdrpp/plugins)