Skip to content

Use .NET Standard 2.1 for the library and .NET 7.0 for the example #24

Use .NET Standard 2.1 for the library and .NET 7.0 for the example

Use .NET Standard 2.1 for the library and .NET 7.0 for the example #24

name: build
on:
push:
branches: [ develop ]
paths:
- '**.cs'
- '**.csproj'
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
# - name: Test
# run: dotnet test --no-restore --verbosity normal