-
Notifications
You must be signed in to change notification settings - Fork 57
/
.packit.yaml
74 lines (70 loc) · 2.52 KB
/
.packit.yaml
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
73
74
downstream_package_name: keylime-agent-rust
upstream_project_url: https://github.com/keylime/rust-keylime
specfile_path: rpm/fedora/keylime-agent-rust.spec
actions:
get-current-version:
- bash -c "git describe --tags --abbrev=0 | sed 's/v\(.*\)/\1/g'"
srpm_build_deps:
- cargo
- rust
- git
- openssl-devel
jobs:
- job: tests
trigger: pull_request
metadata:
targets:
- fedora-branched
- centos-stream-10-x86_64
skip_build: true
- job: copr_build
trigger: commit
branch: master
specfile_path: rpm/fedora/keylime-agent-rust.spec
files_to_sync:
- rpm/fedora/*
actions:
get-current-version:
bash -c "git describe --tags --abbrev=0 | sed 's/v\(.*\)/\1/g'"
post-upstream-clone:
bash -c 'if [[ ! -d /var/tmp/cargo-vendor-filterer ]]; then git clone https://github.com/cgwalters/cargo-vendor-filterer.git /var/tmp/cargo-vendor-filterer; fi &&
cd /var/tmp/cargo-vendor-filterer &&
cargo build &&
cd - &&
cp /var/tmp/cargo-vendor-filterer/target/debug/cargo-vendor-filterer . &&
./cargo-vendor-filterer --platform x86_64-unknown-linux-gnu
--platform powerpc64le-unknown-linux-gnu
--platform aarch64-unknown-linux-gnu
--platform i686-unknown-linux-gnu
--platform s390x-unknown-linux-gnu
--exclude-crate-path "libloading#tests" &&
tar jcf rpm/fedora/rust-keylime-vendor.tar.xz vendor'
targets:
- fedora-all
preserve_project: True
- job: copr_build
trigger: commit
branch: master
specfile_path: rpm/centos/keylime-agent-rust.spec
files_to_sync:
- rpm/centos/*
actions:
get-current-version:
bash -c "git describe --tags --abbrev=0 | sed 's/v\(.*\)/\1/g'"
post-upstream-clone:
bash -c 'if [[ ! -d /var/tmp/cargo-vendor-filterer ]]; then git clone https://github.com/cgwalters/cargo-vendor-filterer.git /var/tmp/cargo-vendor-filterer; fi &&
cd /var/tmp/cargo-vendor-filterer &&
cargo build &&
cd - &&
cp /var/tmp/cargo-vendor-filterer/target/debug/cargo-vendor-filterer . &&
./cargo-vendor-filterer --platform x86_64-unknown-linux-gnu
--platform powerpc64le-unknown-linux-gnu
--platform aarch64-unknown-linux-gnu
--platform i686-unknown-linux-gnu
--platform s390x-unknown-linux-gnu
--exclude-crate-path "libloading#tests" &&
tar jcf rpm/centos/rust-keylime-vendor.tar.xz vendor'
targets:
- centos-stream-9-x86_64
- centos-stream-10-x86_64
preserve_project: True