-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 986 Bytes
/
ci.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
pull_request: # trigger on pull requests
push:
branches: # array of glob patterns matching against refs/heads. Optional; defaults to all
- master # triggers on pushes that contain changes in master
jobs:
Build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [ linux ]
include:
- build: linux
os: ubuntu-latest
rust: 1.59.0
steps:
- uses: actions/checkout@v3
- name: Install Rust components
run: rustup component add rustfmt && rustup component add clippy
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-01-19
override: true
- name: Check Rust format
run: cargo fmt -- --check
- name: Build aggregator
run: cargo build --verbose --release
- name: Test aggregator
run: cargo test --all