created github flag

cuz github actions is crashing due to low RAM
This commit is contained in:
Václav Šmejkal 2022-05-12 18:41:39 +02:00
parent 360ef5eefe
commit 3c536f22a8

View File

@ -4,13 +4,14 @@
#include <why2.h> #include <why2.h>
int main(void) int main(int argc, char *argv[])
{ {
char *buffer; char *buffer;
int githubActions = argc == 2 && strcmp(argv[1], "--github") == 0; //THIS IS JUST SHIT FOR GITHUB ACTIONS (LOW RAM)
inputFlags flags = inputFlags flags =
{ {
1, //SKIP CHECK githubActions, //SKIP CHECK
0, //NO OUTPUT 0, //NO OUTPUT
}; };
@ -32,7 +33,7 @@ int main(void)
//DEALLOCATION //DEALLOCATION
free(buffer); free(buffer);
deallocateOutput(encrypted); if (!githubActions) deallocateOutput(encrypted);
return 0; return 0;
} }