Skip to content

kvstore: switch to kvstore v2 hostcalls #430

kvstore: switch to kvstore v2 hostcalls

kvstore: switch to kvstore v2 hostcalls #430

name: Build Examples
on:
push:
branches:
- main
pull_request:
jobs:
build-examples:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Newest supported configuration
- go-version: '1.23' # pairs with TinyGo 0.33.0
tinygo-version: '0.33.0'
# Oldest supported configuration
- go-version: '1.21' # pairs with TinyGo 0.29.0
tinygo-version: '0.29.0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: ./.github/actions/install-tinygo
with:
tinygo-version: ${{ matrix.tinygo-version }}
- name: Build examples Go
env:
GOARCH: wasm
GOOS: wasip1
run: |
for i in _examples/*/; do
echo ${GITHUB_WORKSPACE}/$i
cd ${GITHUB_WORKSPACE}/$i && go build -tags fastlyinternaldebug
done
- name: Build examples TinyGo
run: |
for i in _examples/*/; do
echo ${GITHUB_WORKSPACE}/$i
cd ${GITHUB_WORKSPACE}/$i && tinygo build -target=wasi -tags fastlyinternaldebug
done