Skip to content

🔼 Update dependency MaterialDesignThemes to 5.3.1-ci1190 #840

🔼 Update dependency MaterialDesignThemes to 5.3.1-ci1190

🔼 Update dependency MaterialDesignThemes to 5.3.1-ci1190 #840

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.png'
- '**.webp'
- 'LICENSE'
pull_request:
paths-ignore:
- '**.md'
- '**.png'
- '**.webp'
- 'LICENSE'
jobs:
build:
name: Build
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
# Publish
- name: Define MSBuild properties
run: echo "MSBUILD_PROPS=-p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebuggerSupport=false -p:EnableUnsafeBinaryFormatterSerialization=false -p:EnableUnsafeUTF7Encoding=false -p:InvariantGlobalization=true" >> $GITHUB_ENV
- name: Publish framework-dependent
run: |
dotnet publish YoutubeDl.Wpf -c Release --no-restore
dotnet publish YoutubeDl.LogReplay -c Release --no-restore
- name: Publish self-contained for Windows ARM64
run: |
dotnet publish YoutubeDl.Wpf -c Release -r win-arm64 --self-contained
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-arm64 --self-contained
- name: Publish self-contained for Windows x64
run: |
dotnet publish YoutubeDl.Wpf -c Release -r win-x64 --self-contained
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-x64 --self-contained
- name: Publish self-contained for Windows x86
run: |
dotnet publish YoutubeDl.Wpf -c Release -r win-x86 --self-contained
dotnet publish YoutubeDl.LogReplay -c Release $MSBUILD_PROPS -r win-x86 --self-contained
# Upload YoutubeDl.Wpf
- name: Upload YoutubeDl.Wpf artifacts for Windows framework-dependent
uses: actions/upload-artifact@v5
with:
name: youtube-dl-wpf-${{ github.sha }}-windows
path: YoutubeDl.Wpf/bin/Release/net9.0-windows10.0.26100.0/publish/
- name: Upload YoutubeDl.Wpf artifacts for Windows ARM64
uses: actions/upload-artifact@v5
with:
name: youtube-dl-wpf-${{ github.sha }}-windows-arm64
path: YoutubeDl.Wpf/bin/Release/net9.0-windows10.0.26100.0/win-arm64/publish/
- name: Upload YoutubeDl.Wpf artifacts for Windows x64
uses: actions/upload-artifact@v5
with:
name: youtube-dl-wpf-${{ github.sha }}-windows-x64
path: YoutubeDl.Wpf/bin/Release/net9.0-windows10.0.26100.0/win-x64/publish/
- name: Upload YoutubeDl.Wpf artifacts for Windows x86
uses: actions/upload-artifact@v5
with:
name: youtube-dl-wpf-${{ github.sha }}-windows-x86
path: YoutubeDl.Wpf/bin/Release/net9.0-windows10.0.26100.0/win-x86/publish/
# Upload YoutubeDl.LogReplay
- name: Upload YoutubeDl.LogReplay artifacts for Windows framework-dependent
uses: actions/upload-artifact@v5
with:
name: youtube-dl-log-replay-${{ github.sha }}-windows
path: YoutubeDl.LogReplay/bin/Release/net9.0/publish/
- name: Upload YoutubeDl.LogReplay artifacts for Windows ARM64
uses: actions/upload-artifact@v5
with:
name: youtube-dl-log-replay-${{ github.sha }}-windows-arm64
path: YoutubeDl.LogReplay/bin/Release/net9.0/win-arm64/publish/
- name: Upload YoutubeDl.LogReplay artifacts for Windows x64
uses: actions/upload-artifact@v5
with:
name: youtube-dl-log-replay-${{ github.sha }}-windows-x64
path: YoutubeDl.LogReplay/bin/Release/net9.0/win-x64/publish/
- name: Upload YoutubeDl.LogReplay artifacts for Windows x86
uses: actions/upload-artifact@v5
with:
name: youtube-dl-log-replay-${{ github.sha }}-windows-x86
path: YoutubeDl.LogReplay/bin/Release/net9.0/win-x86/publish/