From 8ce8b1ebfb66f985f83a8dc4487ea2d5027306df Mon Sep 17 00:00:00 2001 From: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Date: Sat, 1 Aug 2026 02:12:43 -0400 Subject: [PATCH] feat: platform testing workflows --- .gitea/workflows/orbis.yaml | 47 +++++++++++++++++++++++++++++++++ .gitea/workflows/ps3.yaml | 47 +++++++++++++++++++++++++++++++++ .gitea/workflows/psvita.yaml | 47 +++++++++++++++++++++++++++++++++ .gitea/workflows/windows64.yaml | 47 +++++++++++++++++++++++++++++++++ .gitea/workflows/xbox.yaml | 47 +++++++++++++++++++++++++++++++++ 5 files changed, 235 insertions(+) create mode 100644 .gitea/workflows/orbis.yaml create mode 100644 .gitea/workflows/ps3.yaml create mode 100644 .gitea/workflows/psvita.yaml create mode 100644 .gitea/workflows/windows64.yaml create mode 100644 .gitea/workflows/xbox.yaml diff --git a/.gitea/workflows/orbis.yaml b/.gitea/workflows/orbis.yaml new file mode 100644 index 00000000..053ce396 --- /dev/null +++ b/.gitea/workflows/orbis.yaml @@ -0,0 +1,47 @@ +name: Build & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag for release (e.g. v1.0.0).' + required: true + default: '' + configuration: + description: 'Configuration for the build (e.g. Debug, Release).' + required: true + default: 'Release' + +jobs: + build: + runs-on: windows-2022 + + strategy: + matrix: + platform: [ORBIS] + + steps: + - name: Checkout Repository + uses: https://github.com/actions/checkout@v4 + + - name: Build Cafeberry + run: | + & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" MinecraftConsoles.sln ` + /p:Configuration=${{ inputs.configuration }} ` + /p:Platform=${{ matrix.platform }} ` + /m + + - name: Zip Build (Consoles) + if: matrix.platform != 'Windows64' + run: 7z a -r LCE${{ matrix.platform }}.zip ./${{ matrix.platform }}_${{ inputs.configuration }}/* "-x!*.ipdb" "-x!*.iobj" + + - name: Stage artifacts + run: | + New-Item -ItemType Directory -Force -Path staging + Copy-Item LCE${{ matrix.platform }}.zip staging/ + + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + name: build-${{ matrix.platform }} + path: staging/* \ No newline at end of file diff --git a/.gitea/workflows/ps3.yaml b/.gitea/workflows/ps3.yaml new file mode 100644 index 00000000..8a2958b5 --- /dev/null +++ b/.gitea/workflows/ps3.yaml @@ -0,0 +1,47 @@ +name: Build & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag for release (e.g. v1.0.0).' + required: true + default: '' + configuration: + description: 'Configuration for the build (e.g. Debug, Release).' + required: true + default: 'Release' + +jobs: + build: + runs-on: windows-2022 + + strategy: + matrix: + platform: [PS3] + + steps: + - name: Checkout Repository + uses: https://github.com/actions/checkout@v4 + + - name: Build Cafeberry + run: | + & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" MinecraftConsoles.sln ` + /p:Configuration=${{ inputs.configuration }} ` + /p:Platform=${{ matrix.platform }} ` + /m + + - name: Zip Build (Consoles) + if: matrix.platform != 'Windows64' + run: 7z a -r LCE${{ matrix.platform }}.zip ./${{ matrix.platform }}_${{ inputs.configuration }}/* "-x!*.ipdb" "-x!*.iobj" + + - name: Stage artifacts + run: | + New-Item -ItemType Directory -Force -Path staging + Copy-Item LCE${{ matrix.platform }}.zip staging/ + + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + name: build-${{ matrix.platform }} + path: staging/* \ No newline at end of file diff --git a/.gitea/workflows/psvita.yaml b/.gitea/workflows/psvita.yaml new file mode 100644 index 00000000..696cc68b --- /dev/null +++ b/.gitea/workflows/psvita.yaml @@ -0,0 +1,47 @@ +name: Build & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag for release (e.g. v1.0.0).' + required: true + default: '' + configuration: + description: 'Configuration for the build (e.g. Debug, Release).' + required: true + default: 'Release' + +jobs: + build: + runs-on: windows-2022 + + strategy: + matrix: + platform: [PSVita] + + steps: + - name: Checkout Repository + uses: https://github.com/actions/checkout@v4 + + - name: Build Cafeberry + run: | + & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" MinecraftConsoles.sln ` + /p:Configuration=${{ inputs.configuration }} ` + /p:Platform=${{ matrix.platform }} ` + /m + + - name: Zip Build (Consoles) + if: matrix.platform != 'Windows64' + run: 7z a -r LCE${{ matrix.platform }}.zip ./${{ matrix.platform }}_${{ inputs.configuration }}/* "-x!*.ipdb" "-x!*.iobj" + + - name: Stage artifacts + run: | + New-Item -ItemType Directory -Force -Path staging + Copy-Item LCE${{ matrix.platform }}.zip staging/ + + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + name: build-${{ matrix.platform }} + path: staging/* \ No newline at end of file diff --git a/.gitea/workflows/windows64.yaml b/.gitea/workflows/windows64.yaml new file mode 100644 index 00000000..0db4a0d5 --- /dev/null +++ b/.gitea/workflows/windows64.yaml @@ -0,0 +1,47 @@ +name: Build & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag for release (e.g. v1.0.0).' + required: true + default: '' + configuration: + description: 'Configuration for the build (e.g. Debug, Release).' + required: true + default: 'Release' + +jobs: + build: + runs-on: windows-2022 + + strategy: + matrix: + platform: [Windows64] + + steps: + - name: Checkout Repository + uses: https://github.com/actions/checkout@v4 + + - name: Build Cafeberry + run: | + & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" MinecraftConsoles.sln ` + /p:Configuration=${{ inputs.configuration }} ` + /p:Platform=${{ matrix.platform }} ` + /m + + - name: Zip Build (Consoles) + if: matrix.platform != 'Windows64' + run: 7z a -r LCE${{ matrix.platform }}.zip ./${{ matrix.platform }}_${{ inputs.configuration }}/* "-x!*.ipdb" "-x!*.iobj" + + - name: Stage artifacts + run: | + New-Item -ItemType Directory -Force -Path staging + Copy-Item LCE${{ matrix.platform }}.zip staging/ + + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + name: build-${{ matrix.platform }} + path: staging/* \ No newline at end of file diff --git a/.gitea/workflows/xbox.yaml b/.gitea/workflows/xbox.yaml new file mode 100644 index 00000000..0bcce15e --- /dev/null +++ b/.gitea/workflows/xbox.yaml @@ -0,0 +1,47 @@ +name: Build & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag for release (e.g. v1.0.0).' + required: true + default: '' + configuration: + description: 'Configuration for the build (e.g. Debug, Release).' + required: true + default: 'Release' + +jobs: + build: + runs-on: windows-2022 + + strategy: + matrix: + platform: [Xbox 360] + + steps: + - name: Checkout Repository + uses: https://github.com/actions/checkout@v4 + + - name: Build Cafeberry + run: | + & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" MinecraftConsoles.sln ` + /p:Configuration=${{ inputs.configuration }} ` + /p:Platform=${{ matrix.platform }} ` + /m + + - name: Zip Build (Consoles) + if: matrix.platform != 'Windows64' + run: 7z a -r LCE${{ matrix.platform }}.zip ./${{ matrix.platform }}_${{ inputs.configuration }}/* "-x!*.ipdb" "-x!*.iobj" + + - name: Stage artifacts + run: | + New-Item -ItemType Directory -Force -Path staging + Copy-Item LCE${{ matrix.platform }}.zip staging/ + + - name: Upload artifacts + uses: https://github.com/actions/upload-artifact@v3 + with: + name: build-${{ matrix.platform }} + path: staging/* \ No newline at end of file