CI added GitHub actions

This commit is contained in:
Frank Morgner
2022-01-18 17:47:36 +01:00
parent 24c502f152
commit 111eb86d3d
5 changed files with 231 additions and 0 deletions

42
.github/build-virtualsmartcard.sh vendored Executable file
View File

@@ -0,0 +1,42 @@
#!/bin/bash
# CI script to build for "ubuntu", "coverity", "macos"
set -ex -o xtrace
pushd virtualsmartcard
DEPS="help2man automake libtool"
case "$1" in
ubuntu|coverity)
DEPS="$DEPS libpcsclite-dev libqrencode-dev"
;;
macos)
DEPS="$DEPS gengetopt"
;;
esac
case "$1" in
ubuntu|coverity)
sudo apt-get install -y $DEPS
;;
macos)
brew install $DEPS
;;
esac
autoreconf -vis
./configure
case "$1" in
ubuntu)
make distcheck
;;
macos)
make osx
;;
esac
popd