mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-23 23:58:15 -05:00
The `dotnet` command no longer allows using `--output` to specify the output directory for building a solution file: https://github.com/dotnet/sdk/issues/15607 This broke my GitHub Actions tests for C#. I used the following workaround, because in my case I know merging multiple builds into one directory is safe: https://github.com/dotnet/sdk/issues/30624#issuecomment-1432118204
14 lines
440 B
Bash
Executable File
14 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
./generate source || Fail "Problem generating target code."
|
|
|
|
cd dotnet/csharp_test || "Cannot change to directory dotnet/csharp_test"
|
|
dotnet build --property:OutputPath="${PWD}/exe" || Fail "Error building C# source code"
|
|
time dotnet ${PWD}/exe/csharp_test.dll lunar_eclipse || Fail "Error running lunar eclipse test."
|
|
cd ../.. || Fail "Error changing back to generate directory"
|