2024-05-22 16:21:43 +00:00
|
|
|
# This workflow will build a .NET project
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
|
|
|
|
|
|
name: .NET
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
2024-06-09 16:01:47 +00:00
|
|
|
publish-aot:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
runtime-id: [win-x64]
|
2024-05-22 16:21:43 +00:00
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Test
|
2024-06-09 16:01:47 +00:00
|
|
|
run: dotnet test --verbosity normal
|
|
|
|
- name: Publish
|
|
|
|
run: dotnet publish FireflySR.Tool.Proxy.csproj -c Release -r ${{ matrix.runtime-id }}
|
|
|
|
- name: Remove .pdb debug symbols
|
|
|
|
run: rm bin/Release/net8.0/${{ matrix.runtime-id }}/publish/*.pdb
|
2024-05-22 16:21:43 +00:00
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2024-06-09 16:01:47 +00:00
|
|
|
name: FireflySR.Tool.Proxy_${{ matrix.runtime-id }}
|
|
|
|
path: bin/Release/net8.0/${{ matrix.runtime-id }}/publish
|