Skip to content

Manager: Use DebounceThrottle library for debouncing #17

Manager: Use DebounceThrottle library for debouncing

Manager: Use DebounceThrottle library for debouncing #17

Workflow file for this run

name: Prepare Log Manager release
on:
push:
tags:
- 'manager-v*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
# This is required to avoid a breaking change in 6.0.2 https://github.com/dotnet/core/pull/7346/
dotnet-version: 6.0.101
# This is a workaround for issue https://github.com/actions/virtual-environments/issues/1090,
# which causes to nuget restores to fail
- name: Clean NuGet cache
run: dotnet nuget locals all --clear
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Package Log Manager (Windows, WPF)
run: dotnet publish ArcdpsLogManager.Wpf --configuration Release -r win-x64 --self-contained=false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/win64/
- name: Package Log Manager (Windows, WPF, self-contained)
run: dotnet publish ArcdpsLogManager.Wpf --configuration Release -r win-x64 --self-contained=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/win64-sc/
- name: Package Log Manager (Linux, GTK)
run: dotnet publish ArcdpsLogManager.Gtk --configuration Release -r linux-x64 --self-contained=false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/linux64/
- name: Package Log Manager (Linux, GTK, self-contained)
run: dotnet publish ArcdpsLogManager.Gtk --configuration Release -r linux-x64 --self-contained=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -o artifacts/manager/linux64-sc/
- name: Prettify executable filenames
run: |
mv artifacts/manager/win64/GW2Scratch.ArcdpsLogManager.Wpf.exe artifacts/manager/win64/ArcdpsLogManager.exe
mv artifacts/manager/win64-sc/GW2Scratch.ArcdpsLogManager.Wpf.exe artifacts/manager/win64-sc/ArcdpsLogManager.exe
mv artifacts/manager/linux64/GW2Scratch.ArcdpsLogManager.Gtk artifacts/manager/linux64/ArcdpsLogManager
mv artifacts/manager/linux64-sc/GW2Scratch.ArcdpsLogManager.Gtk artifacts/manager/linux64-sc/ArcdpsLogManager
- name: Build archives
run: |
Compress-Archive artifacts/manager/win64/ArcdpsLogManager.exe artifacts/manager/win64/Log.Manager.Windows.zip
Compress-Archive artifacts/manager/win64-sc/ArcdpsLogManager.exe artifacts/manager/win64-sc/Log.Manager.Windows.self-contained.zip
Compress-Archive artifacts/manager/linux64/ArcdpsLogManager artifacts/manager/linux64/Log.Manager.Linux.zip
Compress-Archive artifacts/manager/linux64-sc/ArcdpsLogManager artifacts/manager/linux64-sc/Log.Manager.Linux.self-contained.zip
- name: Prepare release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
artifacts/manager/win64/Log.Manager.Windows.zip
artifacts/manager/win64-sc/Log.Manager.Windows.self-contained.zip
artifacts/manager/linux64/Log.Manager.Linux.zip
artifacts/manager/linux64-sc/Log.Manager.Linux.self-contained.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}