-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update swift testing * Swift concurrency fixes and workarounds * Dont run formatting on gha * More fixes * Fix build * More fixes * More
- Loading branch information
Showing
16 changed files
with
46 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,8 @@ jobs: | |
msbuild-architecture: x64 | ||
- uses: compnerd/gha-setup-swift@main | ||
with: | ||
github-repo: thebrowsercompany/swift-build | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag-name: 20240422.2 | ||
release-asset-name: installer-amd64.exe | ||
branch: swift-6.0.2-release | ||
tag: 6.0.2-RELEASE | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
|
@@ -37,43 +35,18 @@ jobs: | |
msbuild-architecture: x64 | ||
- uses: compnerd/gha-setup-swift@main | ||
with: | ||
github-repo: thebrowsercompany/swift-build | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag-name: 20240422.2 | ||
release-asset-name: installer-amd64.exe | ||
branch: swift-6.0.2-release | ||
tag: 6.0.2-RELEASE | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- run: ./gradlew :windows:copyJniHeaders | ||
# Patch to fix building Foundation on Windows with c++ interop, remove in Swift 6.1 | ||
- run: (Get-Content -Raw -Path "$env:LOCALAPPDATA\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\share\ucrt.modulemap") -replace "module complex \{[\s\S]*?\}", "module complex {`n }" | Set-Content -Path "$env:LOCALAPPDATA\Programs\Swift\Platforms\6.0.2\Windows.platform\Developer\SDKs\Windows.sdk\usr\share\ucrt.modulemap" | ||
- name: Swift build | ||
working-directory: ./windows | ||
run: swift build | ||
- name: Swift test | ||
working-directory: ./windows | ||
run: swift test --disable-xctest | ||
|
||
format: | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
- uses: compnerd/gha-setup-swift@main | ||
with: | ||
github-repo: thebrowsercompany/swift-build | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag-name: 20240422.2 | ||
release-asset-name: installer-amd64.exe | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- run: ./gradlew :windows:copyJniHeaders | ||
- name: Swift format | ||
working-directory: ./windows | ||
run: swift run swift-format format -r -p Sources/ Tests/ | ||
- name: Swift lint | ||
working-directory: ./windows | ||
run: swift run swift-format lint -r -p Sources/ Tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters