fixing CI

This commit is contained in:
2023-12-12 18:12:41 +01:00
parent f9d729d30b
commit a387e34d3c
5 changed files with 13 additions and 8 deletions

View File

@@ -39,4 +39,4 @@ jobs:
# Build the test # Build the test
- name: Build Test - name: Build Test
run: cd test && bash ./run.sh run: cd test && bash ./build.sh

View File

@@ -39,5 +39,5 @@ jobs:
# Build the test # Build the test
- name: Build Test - name: Build Test
run: cd test && bash ./run.sh run: cd test && bash ./build.sh

View File

@@ -45,5 +45,5 @@ jobs:
# Build the test # Build the test
- name: Build Test - name: Build Test
run: cd test && bash ./run.sh run: cd test && bash ./build.sh

8
test/build.sh git.filemode.executable_file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [ $(uname -s) = 'Darwin' ]; then
clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g;
else
clang main.c ../libmlx.so -lSDL2 -g;
fi

View File

@@ -1,7 +1,4 @@
#!/bin/bash #!/bin/bash
if [ $(uname -s) = 'Darwin' ]; then bash ./build.sh
clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g && ./a.out; ./a.out
else
clang main.c ../libmlx.so -lSDL2 -g && ./a.out;
fi