Skip to content

Commit cc491a5

Browse files
Simplify workflow to only build Windows (win-x64) version
Co-authored-by: YimingZhanshen <76594627+YimingZhanshen@users.noreply.github.com>
1 parent 3080713 commit cc491a5

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,9 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ${{ matrix.os }}
12+
runs-on: windows-latest
1313
permissions:
1414
contents: read
15-
strategy:
16-
matrix:
17-
os: [ubuntu-latest, windows-latest, macos-latest]
18-
configuration: [Release]
19-
include:
20-
- os: ubuntu-latest
21-
rid: linux-x64
22-
- os: windows-latest
23-
rid: win-x64
24-
- os: macos-latest
25-
rid: osx-x64
2615

2716
steps:
2817
- name: Checkout code
@@ -37,13 +26,13 @@ jobs:
3726
run: dotnet restore AirPlay.sln
3827

3928
- name: Build
40-
run: dotnet build AirPlay.sln --configuration ${{ matrix.configuration }} --no-restore
29+
run: dotnet build AirPlay.sln --configuration Release --no-restore
4130

4231
- name: Publish
43-
run: dotnet publish AirPlay/AirPlay.csproj --configuration ${{ matrix.configuration }} --runtime ${{ matrix.rid }} --self-contained true --output ./publish/${{ matrix.rid }}
32+
run: dotnet publish AirPlay/AirPlay.csproj --configuration Release --runtime win-x64 --self-contained true --output ./publish/win-x64
4433

4534
- name: Upload build artifacts
4635
uses: actions/upload-artifact@v4
4736
with:
48-
name: AirPlay-${{ matrix.rid }}
49-
path: ./publish/${{ matrix.rid }}/
37+
name: AirPlay-win-x64
38+
path: ./publish/win-x64/

0 commit comments

Comments
 (0)