Skip to content

Commit 2a262bf

Browse files
committed
CI: Run dub test on the library
This currently will not do much, but will still catch basic errors with multiple static if blocks. It will also run any unittests we decide to add in the future.
1 parent b8a912c commit 2a262bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
echo "Expected version '${{ matrix.openssl.version }}' but got `pkg-config --modversion openssl`"
107107
exit 1
108108
fi
109+
dub test
109110
cd examples/sslecho/
110111
${{ github.workspace }}/openssl/install/bin/openssl req -batch -newkey rsa:4096 -x509 -sha256 -days 3650 -subj "/C=GB/CN=localhost" -nodes -out cert.pem -keyout key.pem
111112
dub build

dub.sdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ configuration "library-applink" {
2424

2525
configuration "unittest" {
2626
targetType "executable"
27+
targetName "openssl-test-library"
2728
dflags "-main"
2829
excludedSourceFiles "source/deimos/openssl/applink.d"
2930
preGenerateCommands `${DUB} scripts/generate_version.d` platform="posix"

0 commit comments

Comments
 (0)