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

@@ -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);