forked from ufmg-smite/carcara
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 827 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup
run: rustup default 1.72 && rustup component add clippy
- name: lint
run: cargo clippy --version && cargo clippy --all-targets --all-features --tests --no-deps -- -D warnings
- name: build
run: cargo --version && cargo build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup
run: rustup default 1.72
- name: test
run: cargo --version && cargo test --release
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup
run: rustup default 1.72 && rustup component add rustfmt
- name: check formatting
run: cargo fmt --version && cargo fmt --check