-
Notifications
You must be signed in to change notification settings - Fork 48
Add macOS job to pull request workflow #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
macos-tests-selfhosted: | ||
name: Test (Self Hosted) / macOS Sequoia ARM64 | ||
runs-on: [self-hosted, macos, sequoia, ARM64] | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Prepare the action | ||
run: ./scripts/prep-gh-action.sh --install-swiftly | ||
- name: Build and Test | ||
run: swift test | ||
timeout-minutes: 60 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there reason for not using the github-workflow yml file here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mainly so that we can use the .swift-version
file to control what toolchain to install and use. For that we need swiftly to be installed so that it can fetch and install the toolchain for us.
For other jobs that verify swiftly installs on a fresh system there needs to be no trace of swift or swiftly in those containers.
Compile and test with macOS Sequoia, and the selected Swift toolchain on
each pull request, and merge to the main branch. Also, check the release
build at the same times. Update the prepare GitHub action script so that
it can install swiftly when requested from macOS.