Skip to content

Add certificate decompression function in the library #701

Add certificate decompression function in the library

Add certificate decompression function in the library #701

Workflow file for this run

name: MacOS Release
# This workflow is triggered on pushes to the repository. This is machine tests that everything is set for a release
# build. The binaries produced here can be used to make the release
on: [push]
jobs:
job_1:
name: Build dist with Linux
runs-on: ubuntu-latest
env:
RELEASE_VERSION: 2.3.1
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install prerequisites
run: |
sudo apt install libpcsclite-dev check gengetopt help2man
- name: Create tar.gz
run: |
set -x
./resources/make_src_dist.sh $RELEASE_VERSION
cd ..
mkdir artifact
mv $GITHUB_WORKSPACE/yubico-piv-tool-$RELEASE_VERSION.tar.gz artifact/
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: yubico-piv-tool-src
path: ../artifact
job_2:
name: Build pkg from source
needs: job_1
runs-on: macos-latest
env:
RELEASE_VERSION: 2.3.1
SO_VERSION: 2
steps:
- name: Download source from job_1
uses: actions/download-artifact@v1
with:
name: yubico-piv-tool-src
- name: Extract source
run: |
set -x
cd yubico-piv-tool-src
tar xf yubico-piv-tool-$RELEASE_VERSION.tar.gz
- name: Install prerequisites
run: |
set -x
brew install pkg-config check gengetopt help2man
- name: Build MacOS binaries
run: |
set -x
export INSTALL_PREFIX=/usr/local
cd yubico-piv-tool-src/yubico-piv-tool-$RELEASE_VERSION
./resources/macos/make_release_binaries.sh $RELEASE_VERSION $SO_VERSION $INSTALL_PREFIX
mkdir $GITHUB_WORKSPACE/artifact
mv resources/macos/yubico-piv-tool-$RELEASE_VERSION-mac.zip $GITHUB_WORKSPACE/artifact/
- name: Create installer
run: |
set -x
cd yubico-piv-tool-src/yubico-piv-tool-$RELEASE_VERSION
./resources/macos/make_installer.sh $RELEASE_VERSION $GITHUB_WORKSPACE/artifact/yubico-piv-tool-$RELEASE_VERSION-mac.zip
- name: Install yubico-piv-tool from installer
run: |
set -x
cd yubico-piv-tool-src/yubico-piv-tool-$RELEASE_VERSION/resources/macos
sudo installer -verbose -store -pkg "$PWD/yubico-piv-tool-$RELEASE_VERSION.pkg" -target /
yubico-piv-tool --help | grep "Usage: yubico-piv-tool"
cp $PWD/yubico-piv-tool-$RELEASE_VERSION.pkg $GITHUB_WORKSPACE/artifact/
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: yubico-piv-tool-mac
path: artifact