Skip to content

Update wazero and CI versions #31

Update wazero and CI versions

Update wazero and CI versions #31

Workflow file for this run

name: Wasm
on:
pull_request:
branches:
- main
paths:
- buildtools/re2/**
- .github/workflows/wasm.yaml
push:
branches:
- main
paths:
- buildtools/re2/**
- .github/workflows/wasm.yaml
workflow_dispatch:
permissions:
id-token: write
attestations: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1
id: app-token
if: github.event_name != 'pull_request'
with:
app-id: ${{ vars.WASILIBS_APP_ID }}
private-key: ${{ secrets.WASILIBS_APP_PRIVATE_KEY }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
token: ${{ github.event_name != 'pull_request' && steps.app-token.outputs.token || github.token }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: ^1.22
cache-dependency-path: |
**/go.sum
magefiles/versions.go
- run: go run mage updateLibs
- name: generate memory.wasm
run: go run github.com/wasilibs/go-wabt/cmd/wat2wasm@face6b1 --enable-threads -o internal/wasm/memory.wasm internal/wasm/memory.wat
- run: go run mage test
- uses: actions/attest-build-provenance@310b0a4a3b0b78ef57ecda988ee04b132db73ef8 # v1
if: github.event_name != 'pull_request'
with:
subject-path: internal/wasm/*
- name: push wasm
if: github.event_name != 'pull_request'
continue-on-error: true # Ignore if there is no change
run: |
git config user.name '${{steps.app-token.outputs.app-slug}}[bot]'
git config user.email '173422847+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
git add internal/wasm
git commit -am "Update wasm binary"
git push