-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (67 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
72 lines (67 loc) · 1.77 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI for OBS Service Cargo
on:
push:
paths:
- '**.rs'
- '**/github/**.yaml'
- '**/github/**.yml'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '!**.md'
pull_request:
paths:
- '**.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '!**.md'
env:
CARGO_TERM_COLOR: always
TOOLCHAIN_VERSION: stable
jobs:
build:
runs-on: ubuntu-latest
container: opensuse/leap
steps:
- name: Install tar, gzip, dependencies and Rust
run: |
zypper --non-interactive -vvv in tar gzip libzstd-devel rustup openssl-devel
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cargo update
cargo build --release --all-features
style:
runs-on: ubuntu-latest
container: opensuse/leap
steps:
- name: Install tar, gzip, dependencies and Rust
run: |
zypper --non-interactive -vvv in tar gzip libzstd-devel rustup openssl-devel
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting
run: |
cargo fmt -- --check || true
- name: Check clippy
run: |
cargo clippy
cargo clippy --tests
tests:
runs-on: ubuntu-latest
container: opensuse/leap
steps:
- name: Install tar, gzip, dependencies and Rust
run: |
zypper --non-interactive -vvv in tar gzip libzstd-devel rustup openssl-devel
- name: Checkout
uses: actions/checkout@v4
- name: Install cargo-vendor-filterer
run: |
cargo install cargo-vendor-filterer
- name: Run sample projects to test
run: |
export PATH="${PATH}:${HOME}/.cargo/bin"
echo "${PATH}"
cargo test --release -- --test-threads=1
cargo test --release -- --test-threads=1 --ignored