https://github.com/ffried/swift-cross-compilation-sdk-bundles
Stores cross compilation sdk bundles aligned with Swift releases
https://github.com/ffried/swift-cross-compilation-sdk-bundles
cross-compilation swift
Last synced: 8 months ago
JSON representation
Stores cross compilation sdk bundles aligned with Swift releases
- Host: GitHub
- URL: https://github.com/ffried/swift-cross-compilation-sdk-bundles
- Owner: ffried
- License: apache-2.0
- Archived: true
- Created: 2023-11-26T14:03:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T14:44:03.000Z (about 1 year ago)
- Last Synced: 2025-01-26T02:52:10.822Z (9 months ago)
- Topics: cross-compilation, swift
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Cross-compilation SDK bundles
## ARCHIVE
Note that since the release of the [Swift Static Linux SDK](https://www.swift.org/documentation/articles/static-linux-getting-started.html), this repository is archived.
## Original Description
Stores cross compilation sdk bundles aligned with Swift releases.
A release is created for each Swift release. The assets on the release contain the SDK bundles.The bundles are created using the [Swift SDK Generator](https://github.com/apple/swift-sdk-generator) tool.
To install a (existing) bundle, use the following GitHub action:
```yaml
- uses: ffried/swift-cross-compilation-sdk-bundles/actions/setup@main
id: install-sdk
with:
swift-version: 5.9.1
host-os: macos # must be macos
host-os-version: 13
host-arch: x86_64 # or arm64
target-os: ubuntu
target-os-version: '22.04'
target-arch: x86_64 # or arm64
```The output named `sdk-bundle-name` can be used for running builds with the SDK:
```yaml
- name: Build using SDK
env:
SDK_BUNDLE: ${{ steps.install-sdk.outputs.sdk-bundle-name }}
run: swift build --experimental-swift-sdk "${SDK_BUNDLE}"
```