Update README with exporting default and multi-word functions (#427) #823
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: | |
jobs: | |
checks: | |
name: tests_and_lint | |
# We test on `macos-latest` to accurately reflect | |
# the core Wasm binary that we attach to the releases, | |
# which is built on the latest macOS too. | |
# This is also helpful for testing fuel | |
# consumption in tests. | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Cargo Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }} | |
${{ runner.os }}-cargo | |
- name: Cargo Target Cache | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.toml') }} | |
${{ runner.os }}-cargo-target | |
- name: Install wasmtime-cli | |
env: | |
WASMTIME_VERSION: 8.0.0 | |
run: | | |
wget -nv 'https://github.com/bytecodealliance/wasmtime/releases/download/v${{ env.WASMTIME_VERSION }}/wasmtime-v${{ env.WASMTIME_VERSION }}-x86_64-macos.tar.xz' -O /tmp/wasmtime.tar.xz | |
mkdir /tmp/wasmtime | |
tar xvf /tmp/wasmtime.tar.xz --strip-components=1 -C /tmp/wasmtime | |
echo "/tmp/wasmtime" >> $GITHUB_PATH | |
- name: Install cargo-wasi | |
run: cargo install cargo-wasi | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@cargo-hack | |
- name: Install wizer | |
env: | |
WIZER_VERSION: 3.0.1 | |
run: | | |
wget -nv https://github.com/bytecodealliance/wizer/releases/download/v${{ env.WIZER_VERSION }}/wizer-v${{ env.WIZER_VERSION }}-x86_64-macos.tar.xz -O /tmp/wizer.tar.xz | |
mkdir /tmp/wizer | |
tar xvf /tmp/wizer.tar.xz --strip-components=1 -C /tmp/wizer | |
echo "/tmp/wizer" >> $GITHUB_PATH | |
- name: Install wasi-sdk | |
run: make download-wasi-sdk | |
- name: Tests | |
run: make tests | |
- name: Check benchmarks | |
run: make check-bench | |
- name: Lint | |
run: make fmt |