ci: use token to install libextism #132
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, pull_request] | |
jobs: | |
test-example: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/libextism | |
- name: Install wasm32-wasi-ghc | |
run: | | |
git clone https://gitlab.haskell.org/ghc/ghc-wasm-meta | |
pushd ghc-wasm-meta | |
FLAVOUR=9.8 ./setup.sh | |
- name: Build examples | |
run: | | |
source ~/.ghc-wasm/env | |
make | |
- name: Test call command | |
run: | | |
TEST=$(extism call ./count_vowels.wasm count_vowels --wasi --input "this is a test") | |
echo $TEST | grep '"count":4' | |
TEST=$(extism call ./hello.wasm testing --wasi --input "Name" --config greeting="Hi there") | |
echo $TEST | grep 'Hi there, Name' | |
TEST=$(extism call ./http_get.wasm http_get --wasi --input "https://jsonplaceholder.typicode.com/todos/1" --allow-host '*.typicode.com') | |
echo $TEST | grep '"userId": 1' |