use lock files

This commit is contained in:
zznty
2022-12-12 17:27:21 +07:00
parent 3acaf25376
commit ac1ec431fd
7 changed files with 930 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-dotnet@v3
name: Setup dotnet
with:
dotnet-version: '6.0.x'
dotnet-version: '7.0.x'
- uses: actions/cache@v1
with:
path: ~/.nuget/packages
@@ -30,7 +30,7 @@ jobs:
- name: Add Gh Packages Nuget Source
run: dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github
- name: Restore dependencies
run: dotnet restore Torch.Server/Torch.Server.csproj --use-lock-file
run: dotnet restore Torch.Server/Torch.Server.csproj --locked-mode
- name: Build
run: dotnet build Torch.Server/Torch.Server.csproj --no-restore -c ${{ env.BUILD_CONFIGURATION }} /p:AssemblyVersion=${{ env.TORCH_VERSION }} /p:Version=${{ env.TORCH_VERSION }}
- name: Publish