Skip to content

Commit

Permalink
Githubactions: Install libyubihsm as .deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Aug 11, 2023
1 parent 87b0fe1 commit 800a010
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,18 @@ jobs:
LIBYUBIHSM_TAG: ${{ matrix.libyubihsm_tag }}
PLATFORM: ${{ env.PLATFORM }}
run: |
set -x
cd ..
git clone --branch $LIBYUBIHSM_TAG https://github.com/Yubico/yubihsm-shell.git
cd yubihsm-shell
mkdir build
cd build
cmake .. -DBUILD_ONLY_LIB=ON
make
if [ "${PLATFORM:0:6}" == "debian" ] || [ "$PLATFORM" == "ubuntu1804" ]; then
dpkg-buildpackage -b --no-sign
else
dpkg-buildpackage
fi
ls
sudo dpkg -i ./libyubihsm*_amd64.deb
- name: clone yubihsmrs
working-directory: yubihsm-setup
Expand All @@ -172,9 +176,9 @@ jobs:
export PATH=$PATH:$HOME/.cargo/bin
#YUBIHSM_LIB_DIR=$(dpkg -L libyubihsm1 | grep -e "libyubihsm.so.2$" | xargs dirname) cargo build --release
YUBIHSM_LIB_DIR=$GITHUB_WORKSPACE/yubihsm-shell/build/lib cargo build --release
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/yubihsm-shell/build/lib cargo deb --no-build
YUBIHSM_LIB_DIR=/usr/lib/x86_64-linux-gnu cargo build --release
strip --strip-all target/release/yubihsm-setup
cargo deb --no-build
cp target/debian/*.deb $OUTPUT/
./target/release/yubihsm-setup version
Expand Down

0 comments on commit 800a010

Please sign in to comment.