Skip to content

swiftwasm/setup-swiftwasm

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-swiftwasm

A GitHub Action that installs a Swift SDK for WebAssembly.

Requirements

This action requires a runner with Swift installed.

Usage

runs-on: ubuntu-latest
container: swift:6.0.3
steps:
  - uses: swiftwasm/setup-swiftwasm@v2
  - run: swift build --swift-sdk wasm32-unknown-wasi

To install a Swift SDK compatible with a specific Swift version, add the following to your workflow file:

- uses: swiftwasm/setup-swiftwasm@v2
  with:
    tag: "swift-DEVELOPMENT-SNAPSHOT-2025-02-26-a"

To install a Swift SDK for other targets, add the following to your workflow file:

- uses: swiftwasm/setup-swiftwasm@v2
  with:
    target: "wasm32-unknown-wasip1-threads"

Inputs

Input Default Description
tag The version of swift found in the PATH. The tag name of swiftlang/swift repository to download the Swift SDK compatible with.
target wasm32-unknown-wasi The target to install the Swift SDK for.

Outputs

Output Description
swift-sdk-id The ID of the installed Swift SDK. You can pass this to --swift-sdk option of swift build command.

About

An action to download a prebuilt SwiftWasm toolchain and add it to the PATH

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy