-
-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (27 loc) · 889 Bytes
/
web.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
name: Web
on:
workflow_dispatch:
push:
branches: [main, release-*]
pull_request:
branches: [main, release-*]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libxtst-dev libevdev-dev libxdo-dev
version: 1.0
- name: Add components
run: rustup component add clippy
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Clippy
run: cargo clippy -p afrim-translator -p afrim-memory -p afrim-preprocessor --target wasm32-unknown-unknown --all-features
- name: Build
run: cargo build -p afrim-translator -p afrim-memory -p afrim-preprocessor --target wasm32-unknown-unknown --all-features