Skip to content

Conversation

@cachemeifyoucan
Copy link
Contributor

Add github actions for swift-driver tests that uses swiftlang/github-workflows.

Add github actions for swift-driver tests that uses
swiftlang/github-workflows.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@artemcm artemcm requested a review from shahmishal October 30, 2025 17:03
@shahmishal
Copy link
Member

GitHub Actions is not enabled yet on this repo, once it's enabled we can take this change.

@compnerd
Copy link
Member

This would definitely help us get better Windows coverage!

@cachemeifyoucan
Copy link
Contributor Author

GitHub Actions is not enabled yet on this repo, once it's enabled we can take this change.

Is there anything needs to be discussed to turn on GitHub action?

linux_swift_versions: '["nightly-main", "nightly-6.2"]'
windows_swift_versions: '["nightly-main"]'
windows_build_command: 'Invoke-Program swift test'
enable_linux_static_sdk_build: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add:

enable_android_sdk_build: true
enable_ios_checks: true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does that do? We don't have swift driver test case that target those that requires android SDK or iOS sdk. Swift-driver tests are mostly standalone with only execution environment difference.

I did file this: #1828 which might just as well be a separate task in matrix?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that we should be enabling that - Android is meant to be supported as a host platform not a build platform (i.e. you wouldn't really run the driver on Android, only the generated binaries).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does that do? We don't have swift driver test case that target those that requires android SDK or iOS sdk. Swift-driver tests are mostly standalone with only execution environment difference.
I did file this: #1828 which might just as well be a separate task in matrix?

Swift Build builds for iOS and Android and depends on Swift driver, I want to avoid regressions getting into the build early.

I'm not sure that we should be enabling that - Android is meant to be supported as a host platform not a build platform (i.e. you wouldn't really run the driver on Android, only the generated binaries).

Some people are using Android as a host.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest have a different set of action to test swift-build. Feel free to add the current list.

Like I said, the build side of the test does not need any SDK. All swift-driver tests need to be standalone without relying on any SDK, and the test case recreates SDK structure if needed.

We never added android Host support for running swift-driver. We need to make sure that works and there is a reason for it to work, before committing resources to it.

@shahmishal shahmishal closed this Nov 4, 2025
@shahmishal shahmishal reopened this Nov 4, 2025
@shahmishal
Copy link
Member

GitHub Actions is enabled, I was hopping it would trigger after reopening the PR.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@cachemeifyoucan
Copy link
Contributor Author

GitHub Actions is enabled, I was hopping it would trigger after reopening the PR.

I assume it will only run action from the repo, otherwise I can just PR with an updated bad action to pass all tests/run malicious code.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@compnerd
Copy link
Member

compnerd commented Nov 4, 2025

Sadly, the first commit is never tested, this is a long standing annoyance with GHA. But subsequent changes should get tested.

@shahmishal
Copy link
Member

@cachemeifyoucan can you create a branch on this repo? we have fork actions disabled.

@cachemeifyoucan
Copy link
Contributor Author

@cachemeifyoucan can you create a branch on this repo? we have fork actions disabled.

users/cachemeifyoucan/github-workflow Do you need a PR from it?

@cachemeifyoucan
Copy link
Contributor Author

@cachemeifyoucan can you create a branch on this repo? we have fork actions disabled.

Also swift-build seems work fine with PR from fork.

@shahmishal
Copy link
Member

image

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@shahmishal shahmishal merged commit 09dadbf into swiftlang:main Nov 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants