Skip to content

Commit

Permalink
CI: Simplify kryoptic build
Browse files Browse the repository at this point in the history
Kryoptic supports linking against system OpenSSL, which should
be much faster than rebuilding the whole OpenSSL.

Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Nov 22, 2024
1 parent cff4036 commit a952b8b
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/kryoptic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ jobs:

- name: Install Dependencies
run: |
dnf -y install clang git meson cargo expect \
pkgconf-pkg-config openssl-devel openssl opensc \
p11-kit-devel p11-kit-server gnutls-utils \
gcc g++ perl-interpreter zlib-devel sqlite-devel \
'perl(Module::Load::Conditional)' 'perl(File::Temp)' \
'perl(IPC::Cmd)' 'perl(FindBin)' 'perl(lib)' \
'perl(File::Compare)' 'perl(File::Copy)' \
python3-six which
dnf -y install clang git meson cargo expect pkgconf-pkg-config \
openssl-devel openssl opensc p11-kit-devel gnutls-utils \
gcc g++ zlib-devel sqlite-devel python3-six which
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -45,17 +40,8 @@ jobs:
run: |
git clone https://github.com/latchset/kryoptic.git
cd kryoptic
git submodule update --init
echo "KRYOPTIC=${PWD}" >> "$GITHUB_OUTPUT"
- name: OpenSSL build cache
uses: actions/cache@v4
id: cache
with:
path: |
kryoptic/openssl/
key: ${{ runner.os }}-ossl-${{ hashFiles('kryoptic/.git/modules/openssl/HEAD') }}

- name: Generate lock file
run: |
cd kryoptic
Expand All @@ -75,8 +61,8 @@ jobs:
- name: Build Kryoptic
run: |
cd kryoptic
cargo build
cargo test | tee testout.log 2>&1
cargo build --features dynamic,standard
cargo test --features dynamic,standard | tee testout.log 2>&1
grep -q "0 failed" testout.log
- name: Setup
Expand Down

0 comments on commit a952b8b

Please sign in to comment.