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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 3, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: ltetzlaff/swift@de965f48d6ae1a039db7ad28edd028836354b618 # v1.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
swift-versionSwift toolchain version6.2
pathPath to the Swift package (contains Package.swift).
ssh-keySSH private key for private GitHub dependency reposno""
configurationBuild configuration: debug or releaserelease
productSpecific product to build (builds all by default)no""
static-swift-stdlibStatically link the Swift standard librarytrue
extra-swift-flagsAdditional flags passed to swift buildno""
cache-key-prefixCache key prefix for the .build directoryswiftpm
jemallocInstall and link jemallocfalse
buildRun swift build. Set to 'false' for setup-only (e.g. when running tests).true
namedescription
cache-hitWhether the .build cache was an exact match
bin-pathAbsolute path to the build output directory