-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (45 loc) · 1.04 KB
/
check.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
46
47
48
49
50
51
52
53
name: check
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'devel'
paths:
- 'crates/**.rs'
- 'crates/**/Cargo.toml'
- 'Cargo.*'
- "clippy.toml"
pull_request:
branches:
- 'main'
- 'devel'
paths:
- 'crates/**.rs'
- 'crates/**/Cargo.toml'
- 'Cargo.*'
- "clippy.toml"
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu git rust clang gcc libarchive pkgconf apt --noconfirm --needed
- name: Checkout
uses: actions/checkout@v3
- name: Format
if: '!cancelled()'
run: cargo fmt -- --check
- name: Build
if: '!cancelled()'
run: cargo build --locked --features arch,debian
- name: Clippy
if: '!cancelled()'
run: cargo clippy --features arch,debian -- -Dwarnings
- name: Test
if: '!cancelled()'
run: cargo test --workspace --features arch,debian