Skip to content

Commit 9c8a36d

Browse files
committed
temporary global json
1 parent 976a2a9 commit 9c8a36d

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/dojoc.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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: |

global.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)