gblend init
option Blended App Foundry Template
#21
This file contains hidden or 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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly-2024-10-01 | |
components: rustfmt, clippy | |
- name: Lint | |
run: | | |
cargo fmt -- --check | |
cargo clippy --all-features --locked -- -D warnings | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Test | |
run: cargo test --all-features --locked | |