Skip to content

github actions: replace deprecated actions-rs. #20

github actions: replace deprecated actions-rs.

github actions: replace deprecated actions-rs. #20

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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 dependencies
run: apt-get update && apt-get install -y build-essential
- 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