Skip to content

Commit

Permalink
Build two targets separately
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Jan 26, 2023
1 parent d06ae5c commit 716eef2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ jobs:
runs-on: ubuntu-latest
env:
solutionName: Microsoft.Graph.Beta.sln
projectName: src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
steps:
- uses: actions/checkout@v3.3.0
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.0.x
dotnet-version: 7.x
- name: Restore dependencies
run: dotnet restore ${{ env.solutionName }}
- name: Build for netstandard2.0
run: dotnet build ${{ env.projectName }} -f netstandard2.0 --no-restore -c Release
- name: Build for netstandard2.1
run: dotnet build ${{ env.projectName }} -f netstandard2.1 --no-restore -c Release
- name: Build
run: dotnet build ${{ env.solutionName }} --no-restore -c Release
- name: Test
Expand Down

0 comments on commit 716eef2

Please sign in to comment.