-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (48 loc) · 1.46 KB
/
build-linux-and-windows-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: 'Linux and Windows Release Build'
on:
push:
tags:
- "v*.*.*"
jobs:
linux-release:
name: Build SIL Kit QEMU 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 QEMU 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