Skip to content

Commit 8651b30

Browse files
committed
ci: test local package building and installation
Adds a new CI test section to check that the local package building target (`make rpm`) works every time, and that the RPMs can be installed. Signed-off-by: Irene Diez <[email protected]>
1 parent 9250791 commit 8651b30

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,20 @@ jobs:
168168
run: devcontainer build --image-name devcontainer-fdo-rs .
169169
- name: Test building in devcontainer
170170
run: docker run --rm -v `pwd`:/code:z --workdir /code --user root devcontainer-fdo-rs cargo build --verbose
171+
172+
local_packaging:
173+
name: Test local packaging
174+
runs-on: ubuntu-latest
175+
container: fedora:latest
176+
steps:
177+
- name: Install deps
178+
run: |
179+
dnf install -y rust-packaging python3-docutils fedora-packager bzip2 cargo git make gcc openssl openssl-devel findutils golang git tpm2-tss-devel swtpm swtpm-tools git clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts
180+
- name: Package
181+
run: |
182+
git clone https://github.com/fedora-iot/fido-device-onboard-rs.git
183+
pushd fido-device-onboard-rs
184+
make rpm
185+
if [[ $(ls rpmbuild/RPMS/x86_64/*.rpm | wc -l) -lt 16 ]]; then exit 1; fi
186+
dnf install -y rpmbuild/RPMS/x86_64/*.rpm
187+
popd

0 commit comments

Comments
 (0)