Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

UCAN v0.10/v1.0 and CACAO v3 support #564

UCAN v0.10/v1.0 and CACAO v3 support

UCAN v0.10/v1.0 and CACAO v3 support #564

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Build
working-directory: ${{ matrix.pkg }}
run: cargo build
- name: Run tests
if: ${{ matrix.pkg != 'sdk-wasm' }}
working-directory: ${{ matrix.pkg }}
run: cargo test
clippy:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Clippy
working-directory: ${{ matrix.pkg }}
run: RUSTFLAGS="-Dwarnings" cargo clippy
fmt:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Fmt
working-directory: ${{ matrix.pkg }}
run: cargo fmt -- --check