-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (42 loc) · 1.37 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
45
name: CI
on:
push:
pull_request:
schedule: [cron: "20 5 * * *"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rustup update stable
run: rustup update stable
- name: Show cargo version
run: cargo --version
- name: Build
run: cargo build --verbose
- name: Build tests
run: cargo test --verbose --no-run
- name: Run tests
run: cargo test --verbose
- name: Run compile fail tests
run: cargo test --test compile_fail --verbose -- --ignored
- name: Clippy
run: cargo clippy --all-features --tests --lib -- -W clippy::all
env:
RUSTFLAGS: -D warnings
- name: Rustup toolchain install nightly
run: rustup toolchain install nightly
# - name: Rustup toolchain install nightly
# run: rustup toolchain install nightly -c clippy
- name: Set minimal versions
run: cargo +nightly update -Z minimal-versions
- name: Build tests (minimal versions)
run: cargo +stable test --verbose --no-run
- name: Run tests (minimal versions)
run: cargo +stable test --verbose
# - name: Clean
# run: cargo clean
# - name: Clippy nightly
# run: cargo +nightly clippy --all-features --tests --lib -- -W clippy::all
# env:
# RUSTFLAGS: -D warnings