move project files to subdirectory, remove extra imports

main
Nathan Franke 4 years ago
parent 3e9ae67a4d
commit a47ef5e3a1
No known key found for this signature in database
GPG Key ID: 082B90CF10A5B648

@ -138,12 +138,12 @@ jobs:
# SCONS_CACHE_LIMIT: 8192 # SCONS_CACHE_LIMIT: 8192
run: | run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' -j2 scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' -j2
ls -l addons/example/bin/ ls -l project/addons/*/bin/
- name: Copy extra files to addon - name: Copy extra files to addon
shell: sh shell: sh
run: | run: |
for addon in ${{ github.workspace }}/addons/*/; do for addon in ${{ github.workspace }}/project/addons/*/; do
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' "$addon" cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' "$addon"
done done
@ -156,6 +156,4 @@ jobs:
with: with:
name: ${{ github.event.repository.name }}_${{ steps.version.outputs.version }} name: ${{ github.event.repository.name }}_${{ steps.version.outputs.version }}
path: | path: |
${{ github.workspace }}/addons/ ${{ github.workspace }}/project/
# TODO: Remove extra file once https://github.com/actions/upload-artifact/issues/174 resolved.
${{ github.workspace }}/project.godot

3
.gitignore vendored

@ -15,6 +15,3 @@
# Editors # Editors
.vscode/ .vscode/
# Godot 4+ specific ignores
.godot/

@ -7,7 +7,8 @@ env = SConscript("godot-cpp/SConstruct")
env.Append(CPPPATH=["src/"]) env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp") sources = Glob("src/*.cpp")
(addon_path,) = glob("addons/*/") # Find correct addons path even if the directory is renamed.
(addon_path,) = glob("project/addons/*/")
scons_cache_path = os.environ.get("SCONS_CACHE") scons_cache_path = os.environ.get("SCONS_CACHE")
if scons_cache_path != None: if scons_cache_path != None:

@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/

@ -1,9 +1,6 @@
#include "my_node.hpp" #include "my_node.hpp"
#include <godot_cpp/core/class_db.hpp> #include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/label.hpp>
#include <godot_cpp/variant/utility_functions.hpp> #include <godot_cpp/variant/utility_functions.hpp>
using namespace godot; using namespace godot;

@ -1,10 +1,6 @@
#pragma once #pragma once
#include <godot_cpp/classes/node.hpp> #include <godot_cpp/classes/node.hpp>
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/viewport.hpp>
#include <godot_cpp/core/binder_common.hpp>
using namespace godot; using namespace godot;

@ -1,9 +1,6 @@
#include "my_singleton.hpp" #include "my_singleton.hpp"
#include <godot_cpp/core/class_db.hpp> #include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/label.hpp>
#include <godot_cpp/variant/utility_functions.hpp> #include <godot_cpp/variant/utility_functions.hpp>
using namespace godot; using namespace godot;

@ -1,10 +1,6 @@
#pragma once #pragma once
#include <godot_cpp/classes/object.hpp> #include <godot_cpp/classes/object.hpp>
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/viewport.hpp>
#include <godot_cpp/core/binder_common.hpp>
using namespace godot; using namespace godot;

Loading…
Cancel
Save