Skip to content

update (#85)

update (#85) #365

Workflow file for this run

name: Build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Depedencies
run: sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl libprotobuf-dev protobuf-compiler
- name: Install Rust toochain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-01-29
override: true
target: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
# - name: Setup Cache
# uses: actions/cache@v3
# continue-on-error: false
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: ${{ runner.os }}-cargo-