fix 2018.4.36f1 (#52) #129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Il2CppInspectorRedux Build | |
| on: [push, workflow_dispatch, workflow_call] | |
| jobs: | |
| build-redux-gui: # this already includes stuff only relevant for linux/macos for when the gui is released on those platforms | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| platform: ['windows-latest'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| sparse-checkout: | | |
| VersionedSerialization | |
| VersionedSerialization.Generator | |
| Il2CppInspector.Common | |
| Il2CppInspector.Redux.FrontendCore | |
| Il2CppInspector.Redux.GUI | |
| Il2CppInspector.Redux.GUI.UI | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: Il2CppInspector.Redux.GUI.UI/package.json | |
| - name: Setup Node.JS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: "pnpm" | |
| cache-dependency-path: Il2CppInspector.Redux.GUI.UI/pnpm-lock.yaml | |
| - name: Install frontend dependencies | |
| run: pnpm install | |
| working-directory: ./Il2CppInspector.Redux.GUI.UI | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "./Il2CppInspector.Redux.GUI.UI/src-tauri" | |
| - name: Setup Tauri dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-redux-gui-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget-redux-gui- | |
| - name: Restore NuGet packages | |
| run: dotnet restore -r win-x64 ./Il2CppInspector.Redux.GUI | |
| # note: we embed the exe directly into the c# component, and it it is built alongside it | |
| # in another msbuild target. | |
| - name: Build GUI | |
| run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj | |
| - name: Upload GUI Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Il2CppInspectorRedux.GUI | |
| path: ./win-x64 | |
| build-redux-cli: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: [ '10.0.x' ] | |
| rid: ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| sparse-checkout: | | |
| VersionedSerialization | |
| VersionedSerialization.Generator | |
| Il2CppInspector.Common | |
| Il2CppInspector.Redux.FrontendCore | |
| Il2CppInspector.Redux.CLI | |
| - name: Setup .NET SDK ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget-cli-${{ matrix.rid }}- | |
| - name: Install dependencies | |
| run: dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI | |
| - name: Build & Publish | |
| run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Il2CppInspectorRedux.CLI-${{ matrix.rid }} | |
| path: ./${{ matrix.rid }} | |
| build-old-gui: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| sparse-checkout: | | |
| VersionedSerialization | |
| VersionedSerialization.Generator | |
| Il2CppInspector.Common | |
| Il2CppInspector.GUI | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-gui-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget-gui- | |
| - name: Restore NuGet packages | |
| run: dotnet restore -r win-x64 ./Il2CppInspector.GUI | |
| - name: Build GUI | |
| run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj | |
| - name: Upload GUI artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Il2CppInspectorRedux.Legacy.GUI | |
| path: ./win-x64 | |
| build-old-cli: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: [ '10.0.x' ] | |
| rid: ['win-x64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| sparse-checkout: | | |
| VersionedSerialization | |
| VersionedSerialization.Generator | |
| Il2CppInspector.Common | |
| Il2CppInspector.CLI | |
| - name: Setup .NET SDK ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-cli-${{ matrix.rid }}-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget-cli-${{ matrix.rid }}- | |
| - name: Install dependencies | |
| run: dotnet restore -r ${{ matrix.rid }} ./Il2CppInspector.CLI | |
| - name: Build & Publish | |
| run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Il2CppInspectorRedux.Legacy.CLI-${{ matrix.rid }} | |
| path: ./${{ matrix.rid }} |