File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,12 +59,14 @@ jobs:
5959
6060 - name : Run build script (Windows)
6161 if : matrix.os == 'windows-latest'
62- shell : cmd
62+ shell : powershell
6363 run : |
64- :: Load the Visual Studio environment so Swift can find the Linker
65- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
66- :: Now run the bash script using the initialized environment
67- bash -c "chmod +x build.sh && ./build.sh"
64+ # Use the Developer PowerShell module to set up the environment
65+ Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
66+ Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" -SkipAutomaticDevShell -DevShellArguments "-arch x64"
67+
68+ # Now run the build using bash
69+ bash ./build.sh
6870
6971 - name : Verify library was built
7072 shell : bash
Original file line number Diff line number Diff line change 11// swift-tools-version: 5.10
22import PackageDescription
33
4- // Define platforms conditionally
54let packagePlatforms : [ SupportedPlatform ]
5+ let packageLocalization : LanguageTag ?
6+
67#if os(Windows)
7- packagePlatforms = [ ] // Windows doesn't need platform-specific tags here
8+ packagePlatforms = [ ]
9+ packageLocalization = nil
810#else
911 packagePlatforms = [
1012 . macOS( . v13) ,
1113 . iOS( . v15) ,
1214 . tvOS( . v15) ,
1315 . watchOS( . v8)
1416 ]
17+ packageLocalization = " no "
1518#endif
1619
1720let package = Package (
1821 name: " LoopAlgorithmToPython " ,
22+ defaultLocalization: packageLocalization,
1923 platforms: packagePlatforms,
2024 products: [
2125 . library(
You can’t perform that action at this time.
0 commit comments