-
Notifications
You must be signed in to change notification settings - Fork 38
32 lines (30 loc) · 867 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build
on:
pull_request:
jobs:
test-files:
name: Test Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Files
run: dotnet test CSAUSBTool.CrossPlatform.Tests/CSAUSBTool.CrossPlatform.Tests.csproj
build-desktop:
needs:
- test-files
name: Desktop App
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: 'CSAUSBTool.CrossPlatform.Desktop/packages.lock.json'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore CSAUSBTool.CrossPlatform.Desktop/CSAUSBTool.CrossPlatform.Desktop.csproj