Skip to content

Commit

Permalink
Test against kryoptic in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Jul 5, 2024
1 parent 0030956 commit 6cfbec8
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/kryoptic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Kryoptic

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
name: CI with kryoptic token
runs-on: ubuntu-22.04
strategy:
fail-fast: false
container: fedora:latest
steps:
- name: Install Dependencies
run: |
dnf -y install git meson cargo \
pkgconf-pkg-config openssl-devel openssl diffutils expect \
p11-kit-devel p11-kit-server gnutls-utils \
gcc g++ coreutils, perl-interpreter sed zlib-devel\
perl(Module::Load::Conditional) perl(File::Temp) perl(IPC::Cmd) \
perl(FindBin), perl(lib), perl(File::Compare), perl(File::Copy)
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Kryoptic
run: |
git clone https://github.com/latchset/kryoptic.git
cd kryoptic
git submodule update --init
cargo build
cargo test | tee testout.log 2>&1
grep -q "0 failed" testout.log
echo $KRYOPTIC=$PWD >> $GITHUB_ENV
- name: Setup
run: |
meson setup builddir
- name: Build and Test
run: |
meson compile -C builddir
meson test --num-processes 1 -C builddir
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Test logs kryoptic
path: |
builddir/meson-logs/
builddir/tests/tmp.kryoptic/p11prov-debug.log
builddir/tests/tmp.kryoptic/testvars
builddir/tests/tmp.kryoptic/openssl.cnf
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Test valgrind logs ${{ matrix.name }}, ${{ matrix.compiler }}, ${{ matrix.token }}
path: |
builddir/meson-logs/
builddir/tests/tmp.${{ matrix.token }}/p11prov-debug.log
builddir/tests/tmp.${{ matrix.token }}/testvars
builddir/tests/tmp.${{ matrix.token }}/openssl.cnf

0 comments on commit 6cfbec8

Please sign in to comment.