Removed intel runner from mac, it never run
Removed arm from windows as it will always fail as git ci runners are not arm
removed gcc12 kept gcc13
Added convenience function for checking if a package is active
This commit is contained in:
marauder2k7 2026-06-16 22:01:19 +01:00
parent 4062a1bbbd
commit 872c765ca0
5 changed files with 23 additions and 31 deletions

View file

@ -21,15 +21,6 @@ jobs:
fail-fast: false
matrix:
config:
# Explicit older GCC versions catch deprecation warnings before
# they become the runner default and break the build silently.
- {
name: "Ubuntu GCC 12",
build_type: "Release",
cc: "gcc-12",
cxx: "g++-12",
generator: "Ninja",
}
- {
name: "Ubuntu GCC 13",
build_type: "Release",

View file

@ -21,8 +21,6 @@ jobs:
fail-fast: false
matrix:
config:
# macos-latest is Apple Silicon (arm64). The Intel entry below
# covers x86_64 users who haven't migrated yet.
- {
name: "macOS ARM Clang Ninja",
os: "macos-latest",
@ -31,14 +29,6 @@ jobs:
cxx: "clang++",
generator: "Ninja",
}
- {
name: "macOS Intel Clang Ninja",
os: "macos-13",
build_type: "Release",
cc: "clang",
cxx: "clang++",
generator: "Ninja",
}
- {
name: "macOS ARM Xcode",
os: "macos-latest",

View file

@ -57,18 +57,6 @@ jobs:
msvc_arch: "amd64",
can_test: true,
}
- {
name: "Windows ARM64 MSVC",
os: "windows-latest",
build_type: "Release",
cc: "cl",
cxx: "cl",
generator: "Visual Studio 18 2026",
cmake_args: "-A ARM64",
compiler_family: "msvc",
msvc_arch: "amd64_arm64",
can_test: false,
}
steps:
- uses: actions/checkout@v4

View file

@ -1748,6 +1748,28 @@ void Namespace::relinkPackages()
activatePackage(mActivePackages[i]);
}
bool Namespace::isPackageActive(StringTableEntry name)
{
S32 x;
for (x = 0; x < mNumActivePackages; x++)
{
if (mActivePackages[x] == name)
{
return true;
}
}
return false;
}
DefineEngineFunction(isPackageActive, bool, (String identifier), ,
"@brief Returns true if the identifier is a package and is active, otherwise false.\n\n"
"@ingroup Packages\n")
{
StringTableEntry name = StringTable->insert(identifier.c_str());
return Namespace::isPackageActive(name);
}
DefineEngineFunction(isPackage, bool, (String identifier), ,
"@brief Returns true if the identifier is the name of a declared package.\n\n"

View file

@ -275,6 +275,7 @@ public:
static void printNamespaceEntries(Namespace * g, bool dumpScript = true, bool dumpEngine = true);
static void unlinkPackages();
static void relinkPackages();
static bool isPackageActive(StringTableEntry name);
static bool isPackage(StringTableEntry name);
static U32 getActivePackagesCount();
static StringTableEntry getActivePackage(U32 index);