Skip to content

Commit

Permalink
Fix dotnet SDK setup in ci.yml (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertospelta authored Aug 2, 2024
1 parent 23c06b7 commit 03e8c2c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
13 changes: 9 additions & 4 deletions .azure/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,20 @@ steps:
inputs:
secureFile: 'VertiPaq-Analyzer.snk'
- task: UseDotNet@2
displayName: '.NET 6.0.x SDK setup'
displayName: 'Install .NET SDK'
inputs:
packageType: sdk
version: 6.0.x
useGlobalJson: true
- task: UseDotNet@2
displayName: '.NET 3.1.x runtime setup'
displayName: 'Install .NET 6.0 runtime'
inputs:
packageType: runtime
version: 3.1.x
version: '6.0.x'
- task: UseDotNet@2
displayName: 'Install .NET 3.1 runtime'
inputs:
packageType: runtime
version: '3.1.x'
- task: DotNetCoreCLI@2
displayName: '.NET restore'
inputs:
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI
name: ci

on:
push:
branches:
Expand All @@ -7,8 +8,7 @@ on:
branches:
- master
workflow_dispatch:
env:
CONFIGURATION: 'Release'

jobs:
build-and-test:
name: build-and-test--${{ matrix.os-version }}
Expand All @@ -18,19 +18,17 @@ jobs:
os-version: [windows-latest] #, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: .NET setup
uses: actions/setup-dotnet@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
dotnet-version: |
3.1.x
6.0.x
- name: .NET info
run: dotnet --info
- name: .NET restore
run: dotnet restore ./VertiPaq-Analyzer.slnf
- name: .NET build
run: dotnet build ./VertiPaq-Analyzer.slnf --configuration ${{ env.CONFIGURATION }} --no-restore
- name: .NET test
run: dotnet test ./VertiPaq-Analyzer.slnf --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal
- name: .NET pack
run: dotnet pack ./VertiPaq-Analyzer.slnf --configuration ${{ env.CONFIGURATION }} --no-build --no-restore --verbosity normal
global-json-file: global.json
- name: restore
run: dotnet restore VertiPaq-Analyzer.slnf
- name: build
run: dotnet build VertiPaq-Analyzer.slnf --configuration Release --no-restore
- name: test
run: dotnet test VertiPaq-Analyzer.slnf --configuration Release --no-build --verbosity normal
- name: pack
run: dotnet pack VertiPaq-Analyzer.slnf --configuration Release --no-build --no-restore --verbosity normal

0 comments on commit 03e8c2c

Please sign in to comment.