Fix github workflow running out of memory
This commit is contained in:
@@ -55,13 +55,7 @@ int main() {
|
|||||||
S8_String dir_path = OS_GetExeDir(&arena);
|
S8_String dir_path = OS_GetExeDir(&arena);
|
||||||
S8_String work_path = OS_GetWorkingDir(&arena);
|
S8_String work_path = OS_GetWorkingDir(&arena);
|
||||||
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
||||||
/*
|
|
||||||
@todo: MAC
|
|
||||||
I have no idea what is happening on mac with this
|
|
||||||
|
|
||||||
dir_path = /Users/runner/work/first/first/build/test_filesystem_debug_clang_mac_os/test_filesystem.exe
|
|
||||||
exe_path = /Users/runner/work/first/first/build/test_filesystem_debug_clang_mac_os/test_filesystem.exe
|
|
||||||
*/
|
|
||||||
IO_Assert(OS_IsDir(dir_path));
|
IO_Assert(OS_IsDir(dir_path));
|
||||||
IO_Assert(!OS_IsFile(dir_path));
|
IO_Assert(!OS_IsFile(dir_path));
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,12 @@
|
|||||||
#include "../standalone_libraries/clexer.c"
|
#include "../standalone_libraries/clexer.c"
|
||||||
|
|
||||||
void TestLexDir(S8_String dir) {
|
void TestLexDir(S8_String dir) {
|
||||||
MA_Scratch scratch;
|
MA_Scratch scratch_filenames;
|
||||||
char buff[1024];
|
char buff[1024];
|
||||||
char msg_buff[1024];
|
char msg_buff[1024];
|
||||||
for (OS_FileIter iter = OS_IterateFiles(scratch, dir); OS_IsValid(iter); OS_Advance(&iter)) {
|
for (OS_FileIter iter = OS_IterateFiles(scratch_filenames, dir); OS_IsValid(iter); OS_Advance(&iter)) {
|
||||||
|
MA_Scratch scratch(scratch_filenames.checkpoint);
|
||||||
|
|
||||||
S8_String file = OS_ReadFile(scratch, iter.absolute_path);
|
S8_String file = OS_ReadFile(scratch, iter.absolute_path);
|
||||||
if (!file.str) continue;
|
if (!file.str) continue;
|
||||||
CL_Lexer lexer = CL_Begin(scratch, file.str, iter.absolute_path.str);
|
CL_Lexer lexer = CL_Begin(scratch, file.str, iter.absolute_path.str);
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ int main() {
|
|||||||
TestBootstrapExclusive();
|
TestBootstrapExclusive();
|
||||||
TestBootstrapArenaClear();
|
TestBootstrapArenaClear();
|
||||||
|
|
||||||
// TestClexer();
|
TestClexer();
|
||||||
// IO_Printf("TestClexer() - DONE\n");
|
|
||||||
|
|
||||||
// Unicode iteration over codepoints using For
|
// Unicode iteration over codepoints using For
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user