Skip to content

Commit 863ae4d

Browse files
committed
Add CI for Profiles Conformance Tool
Rename the `migrate.yml` workflow to `tools.yml` to reflect its expanded scope. Add a new job to build and run the test suite for the profiles conformance tool. This ensures the tool is validated on every pull request. Signed-off-by: Simo Sorce <simo@redhat.com>
1 parent 6901390 commit 863ae4d

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed
Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Migrate Tool
2+
name: Tools
33

44
on:
55
pull_request:
@@ -57,3 +57,53 @@ jobs:
5757
path: |
5858
target/debug/build/*/output
5959
target/i686-unknown-linux-gnu/debug/build/*/output
60+
61+
build:
62+
name: Profiles Conformance Tool
63+
runs-on: ubuntu-22.04
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
name: [standard]
68+
container: quay.io/fedora/fedora:latest
69+
steps:
70+
- name: Get Date for DNF cache entry
71+
id: get-date
72+
run: |
73+
echo "date=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT
74+
shell: bash
75+
76+
- name: Restore DNF cache
77+
uses: actions/cache/restore@v4
78+
with:
79+
path: |
80+
/var/cache/libdnf5
81+
key: ${{ runner.os }}-dnf-${{ steps.get-date.outputs.date }}
82+
83+
- name: Install Dependencies
84+
run: |
85+
dnf -y install git cargo clang-devel openssl-devel sqlite-devel
86+
if [ "${{ matrix.name }}" = "i686" ]; then
87+
dnf -y install rust-std-static.i686 openssl-devel.i686 \
88+
sqlite-devel.i686
89+
fi
90+
91+
- name: Checkout Repository
92+
uses: actions/checkout@v4
93+
94+
- name: Setup
95+
run: |
96+
git config --global --add safe.directory /__w/kryoptic/kryoptic
97+
98+
- name: Build & test
99+
run: |
100+
cargo build -vv --features profiles --all
101+
tools/profiles/test.sh --debug
102+
103+
- uses: actions/upload-artifact@v4
104+
if: failure()
105+
with:
106+
name: Build logs ${{ matrix.name }}
107+
path: |
108+
target/debug/build/*/output
109+
target/i686-unknown-linux-gnu/debug/build/*/output

0 commit comments

Comments
 (0)