@@ -72,49 +72,55 @@ jobs:
7272 path : ./win-x64
7373
7474 build-redux-cli :
75- runs-on : ubuntu-latest
76- strategy :
77- matrix :
78- dotnet-version : [ '10.0.x' ]
79- rid : ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
80-
81- steps :
82- - uses : actions/checkout@v4
83- with :
84- submodules : true
85-
86- - name : Setup .NET SDK ${{ matrix.dotnet-version }}
87- uses : actions/setup-dotnet@v4
88- with :
89- dotnet-version : ${{ matrix.dotnet-version }}
75+ runs-on : ubuntu-latest
76+ strategy :
77+ matrix :
78+ dotnet-version : [ '10.0.x' ]
79+ rid : ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
80+
81+ steps :
82+ - uses : actions/checkout@v5
83+ with :
84+ submodules : true
85+ sparse-checkout : |
86+ '!Il2CppTests/*'
87+ '/*'
88+
89+ - name : Setup .NET SDK ${{ matrix.dotnet-version }}
90+ uses : actions/setup-dotnet@v4
91+ with :
92+ dotnet-version : ${{ matrix.dotnet-version }}
9093
91- - name : Cache NuGet packages
92- uses : actions/cache@v4
93- with :
94- path : ~/.nuget/packages
95- key : ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }}
96- restore-keys : |
97- ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-
98-
99- - name : Install dependencies
100- run : dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI
101-
102- - name : Build & Publish
103- run : dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj
104-
105- - name : Upload artifacts
106- uses : actions/upload-artifact@v4
107- with :
108- name : Il2CppInspectorRedux.CLI-${{ matrix.rid }}
109- path : ./${{ matrix.rid }}
94+ - name : Cache NuGet packages
95+ uses : actions/cache@v4
96+ with :
97+ path : ~/.nuget/packages
98+ key : ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }}
99+ restore-keys : |
100+ ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-
101+
102+ - name : Install dependencies
103+ run : dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI
104+
105+ - name : Build & Publish
106+ run : dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj
107+
108+ - name : Upload artifacts
109+ uses : actions/upload-artifact@v4
110+ with :
111+ name : Il2CppInspectorRedux.CLI-${{ matrix.rid }}
112+ path : ./${{ matrix.rid }}
110113
111114 build-old-gui :
112115 runs-on : windows-latest
113116
114117 steps :
115- - uses : actions/checkout@v4
118+ - uses : actions/checkout@v5
116119 with :
117120 submodules : true
121+ sparse-checkout : |
122+ '!Il2CppTests/*'
123+ '/*'
118124
119125 - name : Setup .NET SDK
120126 uses : actions/setup-dotnet@v4
@@ -148,9 +154,12 @@ jobs:
148154 rid : ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
149155
150156 steps :
151- - uses : actions/checkout@v4
157+ - uses : actions/checkout@v5
152158 with :
153159 submodules : true
160+ sparse-checkout : |
161+ '!Il2CppTests/*'
162+ '/*'
154163
155164 - name : Setup .NET SDK ${{ matrix.dotnet-version }}
156165 uses : actions/setup-dotnet@v4
0 commit comments