From db0c0cc7b6970465a21886d5dfecefdcc68d9945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Szab=C3=B3?= <34127628+firolightfog@users.noreply.github.com> Date: Tue, 13 Jan 2026 17:20:08 +0100 Subject: [PATCH] Install modern Git and fix environment variable typo --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0b01c1..6f34223 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,15 +48,34 @@ jobs: matrix: platform: [win, lin] steps: + # STEP 1: Update system and install modern Git FIRST + - name: Install Git 2.18+ and dependencies + run: | + echo "Current Git version:" + git --version || echo "Git not installed" + + # Update package lists and install modern Git + apt-get update + apt-get install -y software-properties-common + add-apt-repository ppa:git-core/ppa -y + apt-get update + apt-get install -y git + + echo "New Git version:" + git --version + + # STEP 2: Now checkout with submodules (will work with new Git) - uses: actions/checkout@v4 with: submodules: recursive + - uses: actions/cache@v4 id: plugin-version-cache with: path: plugin.json key: ${{ github.sha }}-${{ github.run_id }} + # STEP 3: Install premake (as before) - name: Download and setup premake run: | # Download premake5 (used for Windows cross-compilation in this container) @@ -78,7 +97,7 @@ jobs: - name: Build plugin run: | - export PLUGIN_DIR=$GITHUB_WORKSPACE + export PLUGAN_DIR=$GITHUB_WORKSPACE pushd ${{ env.rack-plugin-toolchain-dir }} # Fixed: Added the missing 'x' before 64. The command must be plugin-build-win-x64/lin-x64. make plugin-build-${{ matrix.platform }}-x64