File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,13 +66,29 @@ jobs:
6666 fi
6767 fi
6868
69+ # === Create global.json before building tools ===
70+ - name : Create global.json for .NET SDK version
71+ run : |
72+ echo '{' > global.json
73+ echo ' "sdk": {' >> global.json
74+ echo ' "version": "${{ env.DOTNET_VERSION }}",' >> global.json
75+ echo ' "rollForward": "latestFeature"' >> global.json
76+ echo ' }' >> global.json
77+ echo '}' >> global.json
78+ echo "Created global.json specifying SDK version ${{ env.DOTNET_VERSION }}"
79+
6980 # Assuming the tools need to be built
7081 - name : Build CAstFfi.Tool
7182 run : dotnet build ./CAstFfi/src/cs/production/CAstFfi.Tool/CAstFfi.Tool.csproj -c Release --framework net8.0 # Adjust path/command if needed
7283
7384 - name : Build C2CS.Tool
7485 run : dotnet build ./c2cs/src/cs/production/C2CS.Tool/C2CS.Tool.csproj -c release --framework net8.0 # Adjust path/command if needed
7586
87+ # === Remove global.json after building tools ===
88+ - name : Remove temporary global.json
89+ if : always() # Ensure removal even if builds fail
90+ run : rm -f global.json && echo "Removed temporary global.json"
91+
7692 - name : Extract Platform Bindings (Linux)
7793 working-directory : ./Bindings/dojo.c # Run from where dojo.h is expected
7894 run : |
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments