mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
fixing CI
This commit is contained in:
2
.github/workflows/linux_clang.yml
vendored
2
.github/workflows/linux_clang.yml
vendored
@@ -39,4 +39,4 @@ jobs:
|
||||
|
||||
# Build the test
|
||||
- name: Build Test
|
||||
run: cd test && bash ./run.sh
|
||||
run: cd test && bash ./build.sh
|
||||
|
||||
2
.github/workflows/linux_gcc.yml
vendored
2
.github/workflows/linux_gcc.yml
vendored
@@ -39,5 +39,5 @@ jobs:
|
||||
|
||||
# Build the test
|
||||
- name: Build Test
|
||||
run: cd test && bash ./run.sh
|
||||
run: cd test && bash ./build.sh
|
||||
|
||||
|
||||
2
.github/workflows/macos_x86.yml
vendored
2
.github/workflows/macos_x86.yml
vendored
@@ -45,5 +45,5 @@ jobs:
|
||||
|
||||
# Build the test
|
||||
- name: Build Test
|
||||
run: cd test && bash ./run.sh
|
||||
run: cd test && bash ./build.sh
|
||||
|
||||
|
||||
8
test/build.sh
git.filemode.executable_file
8
test/build.sh
git.filemode.executable_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
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $(uname -s) = 'Darwin' ]; then
|
||||
clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g && ./a.out;
|
||||
else
|
||||
clang main.c ../libmlx.so -lSDL2 -g && ./a.out;
|
||||
fi
|
||||
bash ./build.sh
|
||||
./a.out
|
||||
|
||||
Reference in New Issue
Block a user