-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 964 Bytes
/
ci.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
name: Build & Test
on: [push]
jobs:
build_and_test:
name: Build & Test
strategy:
matrix:
# we only run on nightly, since leptos needs it
rust: [nightly]
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-all-crates: true
- name: Update Dependencies
run: sudo apt update && sudo apt install pkg-config libssl-dev binaryen -y
- name: Install Cargo-Leptos
run: cargo install cargo-leptos
- uses: actions-rs/cargo@v1
name: Build Library
with:
command: leptos
args: build --release
- uses: actions-rs/cargo@v1
name: Run Tests
with:
command: leptos
args: test --release