Skip to content

Conversation

@rnro
Copy link
Contributor

@rnro rnro commented Apr 8, 2025

Static SDK installation script improvements

Motivation:

Make static SDK installation scripts more modular and make
failures easier to diagnose.

Modifications:

  • Allow specification of binaries from outside the installation script
  • Remove script dependency installation from the script
  • Separate the Swift dependency installation into its own script
  • Fatal error explicitly if the installed Swift can't be found
  • Make curl operations for downloading artifacts explicitly fail

Result:

Scripts which are easier to maintain and operate.

An example CI run with this in operation https://github.com/apple/swift-nio/actions/runs/14329482180/job/40162003318?pr=3186

@rnro rnro force-pushed the install_static_sdk_resiliance branch 2 times, most recently from 7fe2c56 to 26f1815 Compare April 8, 2025 09:01
@rnro rnro added the semver/none No version bump required. label Apr 8, 2025
@rnro rnro changed the title Install static sdk resiliance Static SDK installation script improvements Apr 8, 2025
@rnro rnro marked this pull request as ready for review April 8, 2025 09:04
@rnro rnro force-pushed the install_static_sdk_resiliance branch 2 times, most recently from 3ae85c9 to 1be75a4 Compare April 8, 2025 09:09
@rnro rnro enabled auto-merge (squash) April 8, 2025 09:45
@rnro rnro requested a review from gjcairo April 8, 2025 10:14
rnro added 4 commits April 8, 2025 11:23
Motivation:

Make static SDK installation scripts more modular and make
failures easier to diagnose.

Modifications:

- Allow specification of binaries from outside the installation script
- Remove script dependency installation from the script
- Separate the Swift dependency installation into its own script
- Fatal error explicitly if the installed Swift can't be found
- Make curl operations for downloading artifacts explicitly fail

Result:

Scripts which are easier to maintain and operate.
This reverts commit 8f98c6d.
@rnro rnro force-pushed the install_static_sdk_resiliance branch from f0bb0ad to cf7628c Compare April 8, 2025 10:23
Copy link
Contributor

@gjcairo gjcairo left a comment

Choose a reason for hiding this comment

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

Thanks Rick!

@rnro rnro merged commit 5a9130b into main Apr 8, 2025
40 of 41 checks passed
@rnro rnro deleted the install_static_sdk_resiliance branch April 8, 2025 14:27
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.

4 participants