@@ -44,17 +44,50 @@ jobs:
4444 lfs : true
4545 - uses : actions/setup-dotnet@v4
4646 with :
47- dotnet-version : ' 8.0.x'
47+ dotnet-version : ' 10.0.x'
48+ - name : Install Build Dependencies
49+ run : |
50+ sudo apt-get update
51+ sudo apt-get install -y libbsd-dev clang llvm lld
52+ - name : Patch NativePath for Linux
53+ run : |
54+ # Make strlcat_chk and strlcpy_chk non-fatal on Linux
55+ sed -i 's/#if !__has_builtin(__builtin___strlcat_chk)/#if !__has_builtin(__builtin___strlcat_chk) \&\& !defined(__linux__)/' deps/NativePath/NativePath.h
56+ sed -i 's/#if !__has_builtin(__builtin___strlcpy_chk)/#if !__has_builtin(__builtin___strlcpy_chk) \&\& !defined(__linux__)/' deps/NativePath/NativePath.h
57+ # This step isn't needed, it adds another NuGet soruce
58+ # - name: Configure NuGet Sources
59+ # run: |
60+ # # Get absolute path to local packages
61+ # LOCAL_PACKAGES_PATH="$(pwd)/bin/packages"
62+
63+ # # Only add the local source (not the non-existent global one)
64+ # dotnet nuget add source "$LOCAL_PACKAGES_PATH" --name "StrideDev Local"
65+
66+ # # List configured sources
67+ # echo "==== Configured NuGet Sources ===="
68+ # dotnet nuget list source
4869 - name : Build
4970 run : |
50- dotnet build build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
51- -restore -m:1 -nr:false `
52- -v:m -p:WarningLevel=0 `
53- -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
54- -p:StridePlatforms=Linux `
55- -p:StrideGraphicsApis=OpenGL
71+ dotnet build build/Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf \
72+ -restore -m:1 -nr:false \
73+ -v:m -p:WarningLevel=0 \
74+ -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} \
75+ -p:StridePlatforms=Linux \
76+ -p:StrideGraphicsApis=OpenGL \
77+ # This step isn't needed, it lists the NuGet sources again
78+ # - name: Inspect NuGet Local Sources (always)
79+ # if: always()
80+ # run: |
81+ # echo "==== NuGet Sources (dotnet) ===="
82+ # dotnet nuget list source || true
83+ # echo
84+ # echo "==== Working Directory ===="
85+ # pwd
86+ # echo
87+ # echo "==== StrideDev Local ./bin/packages ===="
88+ # if [ -d ./bin/packages ]; then find ./bin/packages -maxdepth 2 -type f -printf '%P\n' | head -200; else echo "Directory not found"; fi
5689 - name : Test
5790 run : |
58- dotnet test build\ Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
59- --no-build `
91+ dotnet test build/ Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf \
92+ --no-build \
6093 -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }}
0 commit comments