Skip to content

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

cmcgee1024
Copy link
Member

@cmcgee1024 cmcgee1024 commented May 22, 2025

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.

@cmcgee1024 cmcgee1024 marked this pull request as ready for review May 23, 2025 01:59
Comment on lines +25 to +38
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

Copy link
Member

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?

Copy link
Member Author

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.

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.

2 participants