Browse Source

Install modern Git and fix environment variable typo

pull/81/head
András Szabó GitHub 3 weeks ago
parent
commit
db0c0cc7b6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      .github/workflows/build.yml

+ 20
- 1
.github/workflows/build.yml View File

@@ -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


Loading…
Cancel
Save