-
-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (47 loc) · 1.44 KB
/
rust.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
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install libpango1.0-dev libatk1.0-dev libgtk-3-dev libappindicator3-dev meson libarchive-dev
- name: Clone pacman.git
run: git clone --depth=1 https://gitlab.archlinux.org/pacman/pacman.git
- name: Prepare libalpm compile
run: meson pacman/build/ pacman/
- name: Install libalpm
run: sudo ninja -C pacman/build/ install
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Install dependencies
run: sudo apt-get install libpango1.0-dev libatk1.0-dev libgtk-3-dev libappindicator3-dev meson libarchive-dev
- name: Clone pacman.git
run: git clone --depth=1 https://gitlab.archlinux.org/pacman/pacman.git
- name: Prepare libalpm compile
run: meson pacman/build/ pacman/
- name: Install libalpm
run: sudo ninja -C pacman/build/ install
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests -- --deny warnings