Skip to content

Commit 3164fe8

Browse files
committed
Fix upload-artifact step
1 parent 8c0a495 commit 3164fe8

1 file changed

Lines changed: 13 additions & 25 deletions

File tree

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
1-
name: Build
1+
name: Build Stability Matrix (Windows)
22

33
on:
44
push:
5-
branches: [ main, dev ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ main, dev ]
7+
branches: [ "main" ]
8+
workflow_dispatch:
89

910
jobs:
10-
build:
11-
runs-on: ubuntu-latest
11+
build-windows:
12+
runs-on: windows-latest
1213

1314
steps:
1415
- name: Checkout repository
1516
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
1817

1918
- name: Setup .NET SDK 9.x
2019
uses: actions/setup-dotnet@v4
2120
with:
2221
dotnet-version: '9.0.x'
2322

24-
- name: Restore dependencies
25-
run: dotnet restore StabilityMatrix.sln
26-
27-
- name: Build
28-
run: dotnet build StabilityMatrix.sln --configuration Release --no-restore
29-
30-
<<<<<<< HEAD
31-
- name: Publish Avalonia app
32-
run: >
33-
dotnet publish
34-
StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj
35-
-c Release
36-
-r linux-x64
37-
--self-contained false
38-
/p:PublishReadyToRun=false
39-
=======
23+
- name: Restore Avalonia project
24+
run: dotnet restore StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj
25+
26+
- name: Restore Tests project
27+
run: dotnet restore StabilityMatrix.Tests/StabilityMatrix.Tests.csproj
28+
4029
- name: Build Avalonia project
4130
run: dotnet build StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj -c Release --no-restore --no-cache
4231

@@ -55,5 +44,4 @@ jobs:
5544
name: StabilityMatrix-win10-x64
5645
path: ./publish/win10-x64/*
5746
compression-level: 6
58-
retention-days: 14
59-
>>>>>>> d8d9b710 (Update Stability Matrix AI build.yml)
47+
retention-days: 14

0 commit comments

Comments
 (0)