Split Linux validation and Windows release build
This commit is contained in:
@@ -7,9 +7,35 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
build_windows:
|
||||||
|
description: "Build the Windows release package"
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-client:
|
validate-client:
|
||||||
|
runs-on:
|
||||||
|
- self-hosted
|
||||||
|
- ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: "10.0.x"
|
||||||
|
|
||||||
|
- name: Restore client
|
||||||
|
run: dotnet restore ./src/OCSentinelCli/OCSentinelCli.csproj
|
||||||
|
|
||||||
|
- name: Build client
|
||||||
|
run: dotnet build ./src/OCSentinelCli/OCSentinelCli.csproj -c Release --no-restore
|
||||||
|
|
||||||
|
build-client-windows:
|
||||||
|
needs: validate-client
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.build_windows == 'true')
|
||||||
runs-on:
|
runs-on:
|
||||||
- self-hosted
|
- self-hosted
|
||||||
- windows
|
- windows
|
||||||
|
|||||||
Reference in New Issue
Block a user