You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup Emscripten toolchain
v4
This actions step downloads emsdk and installs a version of Emscripten.
name: "emsdk"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: mymindstorm/setup-emsdk@v4
- name: Verify
run: emcc -v
- name: Cache emsdk
uses: actions/cache@v4
id: cache # This is important!
with:
# Set to the same folder as actions-cache-folder (more below)
path: 'emsdk-cache'
# Set the end bit to emsdk version
key: ${{ runner.os }}-emsdk-1.38.40
- name: Setup emsdk (use cache if found, create otherwise)
uses: mymindstorm/setup-emsdk@v2
with:
# Make sure to set a version number!
version: 1.38.40
# This is the name of the cache folder.
# The cache folder will be placed in the build directory,
# so make sure it doesn't conflict with anything!
actions-cache-folder: 'emsdk-cache'
# This stops it from using tc.cacheDir since we are using
# actions/cache.
no-cache: true
- name: Verify
run: emcc -v
version:
description: 'Version to install'
default: 'latest'
no-install:
description: "If true will not download any version of Emscripten. emsdk will still be added to PATH."
default: false
no-cache:
description: "If true will not cache any downloads with tc.cacheDir."
default: false
actions-cache-folder:
description: "Set to the folder where your cached emsdk-master folder is or where emsdk cache will be copied to on sucessful run. This folder will go under $GITHUB_HOME (I.e. build dir)."
default: ''
update-tags:
description: "Update tags before installing a version"
default: false
See action.yml