ltetzlaff/Build Swift Package
Set up Swift toolchain, restore build cache with proper mtime normalization, and build a Swift package with true incremental compilation.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 3, 2026
- License
- MIT
Pinned Snippet
uses: ltetzlaff/swift@de965f48d6ae1a039db7ad28edd028836354b618 # v1.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| swift-version | Swift toolchain version | — | 6.2 |
| path | Path to the Swift package (contains Package.swift) | — | . |
| ssh-key | SSH private key for private GitHub dependency repos | no | "" |
| configuration | Build configuration: debug or release | — | release |
| product | Specific product to build (builds all by default) | no | "" |
| static-swift-stdlib | Statically link the Swift standard library | — | true |
| extra-swift-flags | Additional flags passed to swift build | no | "" |
| cache-key-prefix | Cache key prefix for the .build directory | — | swiftpm |
| jemalloc | Install and link jemalloc | — | false |
| build | Run swift build. Set to 'false' for setup-only (e.g. when running tests). | — | true |
Outputs
| name | description |
|---|---|
| cache-hit | Whether the .build cache was an exact match |
| bin-path | Absolute path to the build output directory |