-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.16 KB
/
build-test.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
33
34
35
36
37
38
39
40
41
42
43
name: Build Test
on:
# Trigger on main branch pushes and PRs
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allow manual trigger for any branch
workflow_dispatch:
env:
DOTNET_VERSION: "9.0.x"
CONFIGURATION: "Release"
jobs:
build-test:
name: Build and Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: |
dotnet restore ./SDK/Quantum.Sdk/Quantum.Sdk.csproj
dotnet restore ./SDK/Quantum.BundleTool/Quantum.BundleTool.csproj
dotnet restore ./Runtime/Quantum.Runtime.csproj
- name: Build SDK Projects
run: |
dotnet build ./SDK/Quantum.Sdk/Quantum.Sdk.csproj -c ${{ env.CONFIGURATION }} --no-restore
dotnet build ./SDK/Quantum.BundleTool/Quantum.BundleTool.csproj -c ${{ env.CONFIGURATION }} --no-restore
- name: Build Runtime
run: dotnet build ./Runtime/Quantum.Runtime.csproj -c ${{ env.CONFIGURATION }} --no-restore