Skip to content

SKA-548: Pre-Built-Release action only builds for Linux (#78) #1

SKA-548: Pre-Built-Release action only builds for Linux (#78)

SKA-548: Pre-Built-Release action only builds for Linux (#78) #1

name: 'Linux and Windows Release Build'
on:
push:
tags:
- "v*.*.*"
jobs:
linux-release:
name: Build SIL Kit TAP for Linux Release configuration
environment: public-github-runners
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Build
uses: ./.github/actions/build-cmake-preset
with:
preset-name: linux-release
cmake-args: "-D PACKAGE_FILENAME_SUFFIX=-${{ github.ref_name }}-ubuntu-20.04-x86_64-gcc"
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
draft: true
files: |
_build/linux-release/SilKit-Adapters*.zip
windows-release:
name: Build SIL Kit TAP for Windows Release configuration
runs-on: windows-latest
environment: public-github-runners
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Build
uses: ./.github/actions/build-cmake-preset
with:
preset-name: windows-release
cmake-args: "-D PACKAGE_FILENAME_SUFFIX=-${{ github.ref_name }}-Win-x86_64-VS2017 -D SILKIT_FLAVOR=Win-x86_64-VS2017"
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
draft: true
files: |
_build/windows-release/SilKit-Adapters*.zip