Skip to content

Conversation

@rnro
Copy link
Contributor

@rnro rnro commented Mar 31, 2025

Separate build and test steps in macos_tests.yml. Test execution can now also be disabled through an input. This is useful for clarity of output and also in some cases where test execution may not be supported yet.

Separate build and test steps in `macos_tests.yml`. Test execution can now also be disabled through an input. This is useful for clarity of output and also in some cases where test execution may not be supported yet.
@rnro rnro added the semver/none No version bump required. label Mar 31, 2025
@rnro rnro enabled auto-merge (squash) March 31, 2025 13:23
submodules: true
- name: Swift build
run: |
swift build --build-tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be build argument overrides as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, added

cat >> "$GITHUB_OUTPUT" << EOM
darwin-matrix=$(
xcode_15_4_enabled="${MATRIX_MACOS_15_4_ENABLED:=true}"
xcode_15_4_build_arguments_override="${MATRIX_MACOS_15_4_BUILD_ARGUMENTS_OVERRIDE:=""}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these need to be listed in the inputs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I've not added it to 15.4 since that's deprecated. The bash defaulting should take care of this.

- name: Swift build
run: |
if [ -n "${{ matrix.config.build_arguments_override }}" ]; then
swift build "${{ matrix.config.build_arguments_override }}"
Copy link
Contributor

@glbrntt glbrntt Mar 31, 2025

Choose a reason for hiding this comment

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

Just checking that --build-tests is purposefully dropped here because the args are being overridden?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I thought giving people power to totally customize was more general.

@rnro rnro requested a review from glbrntt March 31, 2025 13:56
@rnro rnro merged commit 213cc0b into main Mar 31, 2025
40 of 41 checks passed
@rnro rnro deleted the macos_ci_separate_build_step branch March 31, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants