Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StepSecurity Maintained Action

SwiftWasm GitHub Action

This action builds your project with the SwiftWasm toolchain and SDK, and has carton and its WebAssembly dependencies preinstalled.

Inputs

shell-action

Optional The shell command to run on your project. Default is carton test.

Example usage

name: Build and test with SwiftWasm

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  swiftwasm_build:
    runs-on: ubuntu-22,04

    steps:
      - uses: actions/checkout@v7
      - uses: step-security/swiftwasm-action@v5
        with:
          shell-action: carton test

Usage with GitHub Pages

GitHub Pages is an easy way to host SwiftWasm apps. Follow the GitHub Pages guide, and then use an appropriate action after running carton bundle to publish the results:

name: Deploy to GitHub Pages

on:
  push:
    branches: [main]

jobs:
  swiftwasm_deploy:
    runs-on: ubuntu-22.04

    steps:
      - uses: actions/checkout@v7

      - uses: step-security/swiftwasm-action@v5
        with:
          shell-action: carton bundle
      - uses: actions/upload-pages-artifact@v5
        with:
          path: ./Bundle

  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    needs: build
    steps:
      - id: deployment
        uses: actions/deploy-pages@v5

About

GitHub Action with SwiftWasm toolchain and SDK preinstalled. Secure drop-in replacement for swiftwasm/swiftwasm-action.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages