Skip to content

Commit

Permalink
ci: test local package building
Browse files Browse the repository at this point in the history
Adds a new CI test section to check that the local package building
target (`make rpm`) works every time.

Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying committed Jun 22, 2023
1 parent 6475106 commit 17eadd6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,19 @@ jobs:
run: devcontainer build --image-name devcontainer-fdo-rs .
- name: Test building in devcontainer
run: docker run --rm -v `pwd`:/code:z --workdir /code --user root devcontainer-fdo-rs cargo build --verbose

local_packaging:
name: Test local packaging
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Install deps
run: |
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
- name: Package
run: |
git clone https://github.com/fedora-iot/fido-device-onboard-rs.git
pushd fido-device-onboard-rs
make rpm
if [[ $(ls rpmbuild/RPMS/x86_64/*.rpm | wc -l) -eq 16 ]]; then rm -rf rpmbuild; else exit 1; fi
popd

0 comments on commit 17eadd6

Please sign in to comment.