Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: failing build #862

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Recurly.Tests/Recurly.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
<PackageReference Include="Moq" Version="4.14.1" />
<PackageReference Include="ReportGenerator" Version="4.5.8" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Recurly\Recurly.csproj" />
<ItemGroup>
<ProjectReference Include="..\Recurly\Recurly.csproj" />
</ItemGroup>

</Project>
16 changes: 15 additions & 1 deletion scripts/build
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
Loading