-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.12 KB
/
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
42
43
44
name: CI
on:
pull_request: # trigger on pull requests
branches:
- develop
push:
branches: # array of glob patterns matching against refs/heads. Optional; defaults to all
- develop # triggers on pushes that contain changes in develop
jobs:
Build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux]
include:
- build: linux
os: ubuntu-latest
rust: 1.72.0
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Rust components
run: rustup component add rustfmt && rustup component add clippy
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-06-13
override: true
- name: Check Rust format
run: cargo fmt -- --check
- name: Build aggregator
run: cargo build --verbose --release
- name: Test aggregator
if: github.ref == 'refs/heads/master'
run: cargo test --all