github actions: replace deprecated actions-rs. #18
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: 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: sudo apt-get update && sudo 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 iuild |