Skip to content

Commit 45064fd

Browse files
committed
Trying again...
1 parent 14c5a4a commit 45064fd

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

Package.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
// swift-tools-version: 5.10
22
import PackageDescription
33

4-
// Define platforms conditionally
54
let 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

1720
let package = Package(
1821
name: "LoopAlgorithmToPython",
22+
defaultLocalization: packageLocalization,
1923
platforms: packagePlatforms,
2024
products: [
2125
.library(

0 commit comments

Comments
 (0)