Skip to content

Merge pull request #95 from dgehringer/python-seed-support #195

Merge pull request #95 from dgehringer/python-seed-support

Merge pull request #95 from dgehringer/python-seed-support #195

Workflow file for this run

name: wasm-ci
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: "-manifests"
EM_VERSION: 4.0.11
EM_CACHE_FOLDER: 'emsdk-cache'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Cache vcpkg binaries
id: cache-vcpkg
uses: actions/cache@v5
with:
path: |
${{ github.workspace }}/vcpkg/buildtrees
${{ github.workspace }}/vcpkg/packages
${{ github.workspace }}/vcpkg/downloads
${{ github.workspace }}/vcpkg/installed
${{ github.workspace }}/vcpkg/.cache
key: vcpkg-${{ runner.os }}-${{ github.workflow }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-${{ github.workflow }}-
- uses: lukka/run-vcpkg@v11
- name: Setup EMSDK cache
id: cache-system-libraries
uses: actions/cache@v5
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v16
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- uses: lukka/run-vcpkg@v11
- name: Build WebAssembly libraries
run: ${{ github.workspace }}/scripts/build-wasm.sh build
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: wasm-artifacts
path: build/core.*