Skip to content

Commit

Permalink
fix workflow package
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Apr 20, 2024
1 parent d6711a8 commit ecbfd4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: 🦕 C++ GDExtension
on: push

env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
vcpkg_tag: a34c873a9717a888f58dc05268dea15592c2f0ff # 2024.03.25

jobs:
Expand Down Expand Up @@ -32,11 +31,6 @@ jobs:
with:
vcpkgGitCommitId: ${{ env.vcpkg_tag }}

- name: vcpkg install
run: |
cd gdext
${{ env.VCPKG_ROOT }}\vcpkg install --triplet x64-windows-static
- uses: actions/cache@v4
id: cache-godot-cpp
with:
Expand Down Expand Up @@ -86,11 +80,6 @@ jobs:
with:
vcpkgGitCommitId: ${{ env.vcpkg_tag }}

- name: vcpkg install
run: |
cd gdext
${{ env.VCPKG_ROOT }}/vcpkg install --triplet x64-linux
- uses: actions/cache@v4
id: cache-godot-cpp
with:
Expand All @@ -101,7 +90,6 @@ jobs:
- name: Build debug
run: |
cd gdext
ls -R
scons
- name: Build release
Expand Down Expand Up @@ -141,11 +129,6 @@ jobs:
with:
vcpkgGitCommitId: ${{ env.vcpkg_tag }}

- name: vcpkg install
run: |
cd gdext
zsh scripts/vcpkg-macos.sh
- uses: actions/cache@v4
id: cache-godot-cpp
with:
Expand Down Expand Up @@ -212,12 +195,13 @@ jobs:
rm addons/imgui-godot/bin/*.pdb
mkdir addons/imgui-godot/include
cp -r gdext/include/*.h addons/imgui-godot/include/
touch addons/imgui-godot/include/.gdignore
cp gdext/imgui-godot-native.gdextension addons/imgui-godot/
env
imgui_ver=$(grep -m 1 "^#define IMGUI_VERSION " < gdext/imgui/imgui.h | awk '{ print $3 }' | sed 's/"//g')
godot_ver=$(grep -m 1 compatibility_minimum < addons/imgui-godot/imgui-godot-native.gdextension | sed 's/compatibility_minimum = //')
plugin_ver=$(grep -m 1 "version=" < addons/imgui-godot/plugin.cfg | sed 's/version=//' | sed 's/"//g')
pkgfn=imgui-godot-native-${plugin_ver}_godot-${godot_ver}_imgui-${imgui_ver}
pkgfn=imgui-godot-${plugin_ver}_imgui-${imgui_ver}
echo $pkgfn
echo "pkgfn=$pkgfn" >> $GITHUB_OUTPUT
rm -rf gdext
Expand Down
2 changes: 1 addition & 1 deletion addons/imgui-godot/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="imgui-godot"
description="Dear ImGui for Godot"
author="Patrick Dawson"
version="5.0.0"
version="5.0.0-dev"
script="scripts/ImGuiPlugin.gd"

0 comments on commit ecbfd4b

Please sign in to comment.