chore: use extism:host/env
namespace
#45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-example: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Setup Python env | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
check-latest: true | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Checkout extism/cli | |
uses: actions/checkout@v3 | |
with: | |
repository: extism/cli | |
path: cli | |
- name: Install Extism & CLI | |
run: | | |
pushd cli | |
pip3 install cffi | |
pip3 install . | |
popd | |
extism install git | |
- name: Install WASI SDK | |
run: | | |
bash install-wasi-sdk.sh | |
echo '$WASI_SDK_PATH="'$(pwd)'"/wasi-sdk' >> $GITHUB_ENV | |
- name: Example | |
run: | | |
cd examples/count-vowels | |
TEST=$(make run) | |
echo $TEST | grep '"count": 4' |