-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1009 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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