You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- name: CI
-
- on:
- push:
- pull_request:
- workflow_dispatch:
-
- jobs:
- test:
- name: "Test"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Install Cap'n Proto
- run: |
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get install -y capnproto libcapnp-dev
- - name: "Check"
- uses: actions-rs/cargo@v1
- with:
- command: check
- args: --all
- - name: "Build"
- uses: actions-rs/cargo@v1
- with:
- command: build
- args: --all
- - name: "Test"
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --all
-
- examples:
- name: "Examples"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Install Cap'n Proto
- run: |
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get install -y capnproto libcapnp-dev
- - name: "Rust Dataflow example"
- uses: actions-rs/cargo@v1
- with:
- command: run
- args: --example rust-dataflow
- - name: "C Dataflow example"
- uses: actions-rs/cargo@v1
- with:
- command: run
- args: --example c-dataflow
- - name: "C++ Dataflow example"
- uses: actions-rs/cargo@v1
- with:
- command: run
- args: --example cxx-dataflow
-
- clippy:
- name: "Clippy"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Install Cap'n Proto
- run: |
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get install -y capnproto libcapnp-dev
- - name: "Clippy"
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all
-
- rustfmt:
- name: "Formatting"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: "rustfmt"
- run: cargo fmt --all -- --check
-
- check-license:
- name: "License Checks"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - run: cargo install cargo-lichking
- - name: "Check dependency licenses"
- run: cargo lichking check
|