File: rust.yml

package info (click to toggle)
axisregistry 0.4.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,468 kB
  • sloc: python: 1,144; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Rust

on:
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive
      - name: Install protoc
        run: sudo apt-get install protobuf-compiler
      - name: Build
        run: cargo build --verbose
      - name: Check for lints
        run: cargo clippy
      - name: Run tests
        run: |
          cargo test --verbose