Merge pull request #16 from cloudflavor/chore/update-gh-workflow #30
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: 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 |