-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (58 loc) · 1.64 KB
/
lpm.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: lpm
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
code-check:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: check code format and lint
run: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- --D warnings
test:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: unit tests
run: |
cargo test --all-features
- name: build lpm
run: |
cargo build
- name: lpm --update --all
run: |
sudo ./target/debug/lpm --update --all
- name: Sync with 'linux-amd64-default' repository
run: |
sudo ./target/debug/lpm --yes --repository --add linux-amd64-default linux-amd64-default.lpm.lodosgroup.org
sudo ./target/debug/lpm --update --index
- name: lpm --install
run: |
sudo ./target/debug/lpm --yes --install lzip
sudo ./target/debug/lpm --yes --install gc-devel
- name: lpm --delete
run: |
sudo ./target/debug/lpm --yes --delete lzip
sudo ./target/debug/lpm --yes --delete gc-devel
build:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: build
run: |
cargo build --all-features