-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17c69eb
commit 295e482
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if ! command -v dotnet-format; then | ||
# Ensure required dependencies are installed | ||
sudo apt-get update | ||
sudo apt-get install -y libssl1.1 libicu-dev | ||
|
||
# Set the environment variable for globalization invariant mode | ||
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 | ||
|
||
# Set the library path for OpenSSL | ||
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH | ||
|
||
# Restore NuGet packages | ||
dotnet restore | ||
|
||
if ! command -v dotnet-format &> /dev/null; then | ||
echo "Installing dotnet formatter..." | ||
dotnet tool install -g dotnet-format --version 4.0.0 | ||
fi | ||
|
||
# Build the project | ||
dotnet build |