Skip to content

bump project version to 3.0.6 (#415) #4

bump project version to 3.0.6 (#415)

bump project version to 3.0.6 (#415) #4

Workflow file for this run

name: release
permissions:
contents: read
on:
push:
tags:
- 'v*'
env:
BUILD_TYPE: Release
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: windows-latest
windows-arch: x64
- os: windows-latest
windows-arch: Win32
runs-on: ${{matrix.os}}
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# This isn't working currently, see https://github.com/actions/checkout/issues/1467.
# Instead, get the git information manually with the step below.
# with:
# fetch-tags: true
- name: Refresh Git Information
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
git fetch --force --tags
git checkout "${GITHUB_REF_NAME}"
- name: Create Build Directory
run: cmake -E make_directory ./build
- name: Run CMake
shell: bash
working-directory: ./build
run: |
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A ${{ matrix.windows-arch }} $GITHUB_WORKSPACE
else
cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE
fi
- name: Build
working-directory: ./build
shell: bash
run: cmake --build . --parallel --config $BUILD_TYPE --target package
- name: Release (Windows zip)
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'windows-latest'
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
with:
draft: true
files: |
./build/clintercept-*.zip
- name: Release (Linux tgz)
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'ubuntu-latest'
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
with:
draft: true
files: |
./build/clintercept-*.tar.gz