Skip to content

Merge pull request #3 from YimingZhanshen/copilot/optimize-project-an… #15

Merge pull request #3 from YimingZhanshen/copilot/optimize-project-an…

Merge pull request #3 from YimingZhanshen/copilot/optimize-project-an… #15

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore AirPlay.sln
- name: Build
run: dotnet build AirPlay.sln --configuration Release --no-restore
- name: Publish
run: dotnet publish AirPlay/AirPlay.csproj --configuration Release --runtime win-x64 --self-contained true --output ./publish/win-x64
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: AirPlay-win-x64
path: ./publish/win-x64/