microsoft/TypeAgent

Public

mirrored fromhttps://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.1.2-py

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/build-dotnet.yml

59lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4# This workflow will build the TypeAgent TypeScript code.
5
6name: build-dotnet
7
8on:
9 workflow_dispatch:
10 push:
11 branches: ["main"]
12 pull_request:
13 branches: ["main"]
14 merge_group:
15 branches: ["main"]
16
17concurrency:
18 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19 cancel-in-progress: true
20
21permissions:
22 pull-requests: read
23 contents: read
24
25jobs:
26 build_dotnet:
27 strategy:
28 fail-fast: false
29 matrix:
30 configuration: ["Debug", "Release"]
31 runs-on: "windows-latest"
32 steps:
33 - name: Setup Git LF
34 run: |
35 git config --global core.autocrlf false
36 - uses: actions/checkout@v4
37 - uses: dorny/paths-filter@v3
38 id: filter
39 continue-on-error: true
40 with:
41 filters: |
42 dotnet:
43 - "dotnet/**"
44 - ".github/workflows/build-dotnet.yml"
45 - name: Setup MSBuild
46 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.dotnet != 'false' }}
47 uses: microsoft/setup-msbuild@v2
48 - name: Setup NuGet
49 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.dotnet != 'false' }}
50 uses: NuGet/setup-nuget@v2.0.0
51 - name: Restore Packages
52 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.dotnet != 'false' }}
53 working-directory: dotnet
54 run: nuget restore autoShell/AutoShell.sln
55 - name: Build Solution
56 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.dotnet != 'false' }}
57 working-directory: dotnet
58 run: |
59 msbuild.exe autoShell/AutoShell.sln /p:platform="Any CPU" /p:configuration="${{ matrix.configuration }}"
60