Skip to content

Commit

Permalink
Adding new switch to .NET restore command to specify Target framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Jan 25, 2025
1 parent c1a89d8 commit 5e0bfaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: sudo apt-get install -y libsqlite3-mod-spatialite

- name: Restore dependencies
run: dotnet restore
run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }}

- name: Build
run: dotnet build --no-restore -c Release -f ${{ env.DOTNET_FX_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: sudo apt-get install -y libsqlite3-mod-spatialite

- name: Restore dependencies
run: dotnet restore
run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }}

- name: Build
run: dotnet build --no-restore --version-suffix $GITHUB_RUN_ID -c Release -f ${{ env.DOTNET_FX_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# run: dotnet nuget add source "https://nuget.pkg.github.com/deveel/index.json" -n "Deveel GitHub" -u ${{ secrets.DEVEEL_NUGET_USER }} -p ${{ secrets.DEVEEL_NUGET_TOKEN }} --store-password-in-clear-text

- name: Restore dependencies
run: dotnet restore
run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }}

- name: Build
run: dotnet build --no-restore -c Release -f ${{ env.DOTNET_FX_VERSION }}
Expand Down

0 comments on commit 5e0bfaa

Please sign in to comment.