Fix github workflow running out of memory

This commit is contained in:
Krzosa Karol
2024-01-28 07:26:46 +01:00
parent cc1cdbfdbd
commit b0620ae57b
3 changed files with 5 additions and 10 deletions

View File

@@ -55,13 +55,7 @@ int main() {
S8_String dir_path = OS_GetExeDir(&arena);
S8_String work_path = OS_GetWorkingDir(&arena);
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_IsFile(dir_path));

View File

@@ -7,10 +7,12 @@
#include "../standalone_libraries/clexer.c"
void TestLexDir(S8_String dir) {
MA_Scratch scratch;
MA_Scratch scratch_filenames;
char 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);
if (!file.str) continue;
CL_Lexer lexer = CL_Begin(scratch, file.str, iter.absolute_path.str);

View File

@@ -20,8 +20,7 @@ int main() {
TestBootstrapExclusive();
TestBootstrapArenaClear();
// TestClexer();
// IO_Printf("TestClexer() - DONE\n");
TestClexer();
// Unicode iteration over codepoints using For
{