Skip to content

ALPN protocol id enumeration #15

ALPN protocol id enumeration

ALPN protocol id enumeration #15

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
build-release:
strategy:
matrix:
os:
- ubuntu-20.04
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup build dependencies
if: matrix.os == 'ubuntu-20.04'
run: |
echo "TLSSCAN_OS=linux" >> $GITHUB_ENV
sudo apt install -y autoconf automake libtool pkg-config gcc unzip
- name: Setup MacOS build dependencies
if: matrix.os == 'macos-latest'
run: |
echo "TLSSCAN_OS=darwin" >> $GITHUB_ENV
brew install autoconf automake libtool
- name: build-x86-64
run: |
./build-x86-64.sh
grep Version -m 1 $GITHUB_WORKSPACE/CHANGELOG | awk '{printf "TLSSCAN_VERSION=%s", $2}' >> $GITHUB_ENV
- name: build-package
run: |
rm $GITHUB_WORKSPACE/tls-scan
mkdir -p $GITHUB_WORKSPACE/tls-scan/man/man1
cp $GITHUB_WORKSPACE/build-root/bin/tls-scan $GITHUB_WORKSPACE/tls-scan/tls-scan
cp $GITHUB_WORKSPACE/build-root/share/man/man1/tls-scan.1 $GITHUB_WORKSPACE/tls-scan/man/man1/tls-scan.1
cp $GITHUB_WORKSPACE/build-root/etc/tls-scan/ca-bundle.crt $GITHUB_WORKSPACE/tls-scan/ca-bundle.crt
tar -zcvf tls-scan-${{env.TLSSCAN_VERSION}}-${{env.TLSSCAN_OS}}-amd64.tar.gz ./tls-scan/
- name: GH Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
tls-scan-${{env.TLSSCAN_VERSION}}-${{env.TLSSCAN_OS}}-amd64.tar.gz