Skip to content

Merge pull request #16 from cloudflavor/chore/update-gh-workflow #30

Merge pull request #16 from cloudflavor/chore/update-gh-workflow

Merge pull request #16 from cloudflavor/chore/update-gh-workflow #30

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install packages
run: |
apt-get update && apt-get install -y curl \
wget unzip pkg-config libssl-dev cmake build-essential
- uses: actions/checkout@v4
- name: Install latest nightly
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy
target: wasm32-wasip1
- name: Install cargo-component
run: cargo install cargo-component
- name: Install wit-bindgen
run: cargo install wit-bindgen-cli
- name: Check WIT API
run: scripts/check-wit.sh
- name: Run clippy
run: cargo clippy
- name: Build plugins
run: cargo component build -r