Skip to content

Commit

Permalink
[dotnet] Make bazel + nuget work on GitHub actions (Linux and MacOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Oct 5, 2023
1 parent 9bf2950 commit 87dcb36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotnet/private/dotnet_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export CWD=$(pwd)
export APPDATA="$(pwd)"
export PROGRAMFILES="$(pwd)"
# Required to make NuGet tool work on non-writable home path like GitHub actions
export XDG_DATA_HOME=$(mktemp -d)
# Create `global.json` to trick .Net into using the hermetic toolchain
# https://learn.microsoft.com/en-us/dotnet/core/tools/global-json
echo '{{"sdk": {{"version": "{version}"}} }}' >$(pwd)/global.json
Expand Down

0 comments on commit 87dcb36

Please sign in to comment.