Skip to content

Commit e25ea95

Browse files
committed
update workflow to .net 10 and simplify logic a bit
1 parent 746abe5 commit e25ea95

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET SDK
1818
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: '9.0.x'
20+
dotnet-version: '10.0.x'
2121

2222
- name: Setup pnpm
2323
uses: pnpm/action-setup@v4
@@ -60,24 +60,19 @@ jobs:
6060
# note: we embed the exe directly into the c# component, and it it is built alongside it
6161
# in another msbuild target.
6262
- name: Build GUI
63-
run: dotnet publish ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj -r win-x64 --no-self-contained
64-
65-
- name: Copy components to output directory
66-
run: |
67-
mkdir ./build_output
68-
cp ./Il2CppInspector.Redux.GUI/bin/Release/net9.0/win-x64/publish/Il2CppInspector.Redux.GUI.exe ./build_output/
63+
run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
6964

7065
- name: Upload GUI Artifact
7166
uses: actions/upload-artifact@v4
7267
with:
7368
name: Il2CppInspectorRedux.GUI
74-
path: build_output
69+
path: ./win-x64
7570

7671
build-redux-cli:
7772
runs-on: ubuntu-latest
7873
strategy:
7974
matrix:
80-
dotnet-version: [ '9.0.x' ]
75+
dotnet-version: [ '10.0.x' ]
8176
rid: ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
8277

8378
steps:
@@ -121,7 +116,7 @@ jobs:
121116
- name: Setup .NET SDK
122117
uses: actions/setup-dotnet@v4
123118
with:
124-
dotnet-version: '9.0.x'
119+
dotnet-version: '10.0.x'
125120

126121
- uses: actions/cache@v4
127122
with:
@@ -140,13 +135,13 @@ jobs:
140135
uses: actions/upload-artifact@v4
141136
with:
142137
name: Il2CppInspectorRedux.Legacy.GUI
143-
path: Il2CppInspector.GUI/bin/Release/net9.0-windows/win-x64/publish
138+
path: Il2CppInspector.GUI/bin/Release/net10.0-windows/win-x64/publish
144139

145140
build-old-cli:
146141
runs-on: ubuntu-latest
147142
strategy:
148143
matrix:
149-
dotnet-version: [ '9.0.x' ]
144+
dotnet-version: [ '10.0.x' ]
150145
rid: ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
151146

152147
steps:

0 commit comments

Comments
 (0)