Merge pull request #69 from pesca-dev/dependabot/cargo/http-1.0.0 #184
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: 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 |