Skip to content

Commit 17eadd6

Browse files
committed
ci: test local package building
Adds a new CI test section to check that the local package building target (`make rpm`) works every time. Signed-off-by: Irene Diez <idiez@redhat.com>
1 parent 6475106 commit 17eadd6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,19 @@ 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) -eq 16 ]]; then rm -rf rpmbuild; else exit 1; fi
186+
popd

0 commit comments

Comments
 (0)