mirror of
https://github.com/Danielku15/SigningServer
synced 2026-06-08 10:50:19 +00:00
68 lines
2.6 KiB
YAML
68 lines
2.6 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and Test
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
configuration: [Release]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '9'
|
|
- run: dotnet build SigningServer.sln --configuration=${{ matrix.configuration }} -p:BuildNumber=${{ github.run_number }} -p:VersionSuffix=build.${{ github.run_number }}
|
|
- run: dotnet publish SigningServer.sln --configuration=${{ matrix.configuration }} -p:BuildNumber=${{ github.run_number }} -p:VersionSuffix=build.${{ github.run_number }}
|
|
- run: dotnet test SigningServer.sln --configuration=${{ matrix.configuration }} --logger:"console;verbosity=detailed"
|
|
- run: dotnet pack SigningServer.sln --configuration=${{ matrix.configuration }}
|
|
- name: Archive Server Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.Server ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.Server/bin/${{ matrix.configuration }}/*/publish/**/*.*
|
|
- name: Archive Client Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.Client ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.Client/bin/${{ matrix.configuration }}/*/publish/**/*.*
|
|
- name: Archive StandaloneClient Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.StandaloneClient ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.StandaloneClient/bin/${{ matrix.configuration }}/*/publish/**/*.*
|
|
- name: Archive Client .net Tool
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.Client.Tool ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.Client/bin/${{ matrix.configuration }}/*.nupkg
|
|
- name: Archive StandaloneClient .net Tool
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.StandaloneClient.Tool ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.StandaloneClient/bin/${{ matrix.configuration }}/*.nupkg
|
|
- name: Archive SelfContainedClient Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SigningServer.SelfContainedClient ${{ matrix.configuration }}
|
|
path: |
|
|
SigningServer.SelfContainedClient/bin/Release/*.nupkg
|
|
|
|
|
|
test-self-contained:
|
|
needs: [build]
|
|
uses: ./.github/workflows/test-self-contained.yml
|
|
with:
|
|
configuration: Release
|