File tree 7 files changed +13
-12
lines changed
7 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 11
11
uses : oprypin/install-crystal@v1
12
12
- name : Install Crystal libs
13
13
run : shards install
14
+ - name : apt update
15
+ run : apt update
14
16
- name : run install script
15
17
run : sh ./rsrc/native/ubuntu/install.sh
16
18
- name : build examples
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
cd $( dirname " $0 " )
6
- test -d raylib || git clone --branch 5.0 https://github.com/raysan5/raylib --recursive --depth 1
7
- cd raylib
6
+ test -d raylib || git clone --depth 1 --branch 5.0 --recursive https://github.com/raysan5/raylib
8
7
test -d build || mkdir build
9
8
cd build
10
9
cmake ..
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ sudo cp /usr/local/lib/libminiaudiohelpers.so /usr/lib/libminiaudiohelpers.so
6
6
sudo ln -s /usr/lib/libminiaudiohelpers.so /lib/miniaudiohelpers.so
7
7
8
8
# Compile raylib
9
- git clone --branch 5.0 https://github.com/raysan5/raylib
9
+ git clone --depth 1 -- branch 5.0 https://github.com/raysan5/raylib
10
10
mkdir raylib/build
11
11
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
12
12
cmake raylib -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -B raylib/build
@@ -16,7 +16,7 @@ sudo cp /usr/local/lib/libraylib.so.5.0.0 /usr/lib/libraylib.so.500
16
16
sudo ln -s /usr/lib/libraylib.so.500 /lib/raylib.so
17
17
18
18
# Compile raygui
19
- git clone --branch 4.0 https://github.com/raysan5/raygui
19
+ git clone --depth 1 -- branch 4.0 https://github.com/raysan5/raygui
20
20
mv raygui/src/raygui.h raygui/src/raygui.c
21
21
gcc -c -fPIC raygui/src/raygui.c -o raygui/raygui.o -DRAYGUI_IMPLEMENTATION
22
22
sudo gcc raygui/raygui.o -shared -o /usr/local/lib/libraygui.so -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ sudo cp /usr/local/lib/libminiaudiohelpers.so /usr/lib/libminiaudiohelpers.so
5
5
sudo ln -s /usr/lib/libminiaudiohelpers.so /lib/miniaudiohelpers.so
6
6
7
7
# Compile raylib
8
- git clone --branch 5.0 https://github.com/raysan5/raylib
8
+ git clone --depth 1 -- branch 5.0 https://github.com/raysan5/raylib
9
9
mkdir raylib/build
10
10
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
11
11
cmake raylib -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -B raylib/build
@@ -15,7 +15,7 @@ sudo cp /usr/local/lib/libraylib.so.5.0.0 /usr/lib/libraylib.so.500
15
15
sudo ln -s /usr/lib/libraylib.so.500 /lib/raylib.so
16
16
17
17
# Compile raygui
18
- git clone --branch 4.0 https://github.com/raysan5/raygui
18
+ git clone --depth 1 -- branch 4.0 https://github.com/raysan5/raygui
19
19
mv raygui/src/raygui.h raygui/src/raygui.c
20
20
gcc -c -fPIC raygui/src/raygui.c -o raygui/raygui.o -DRAYGUI_IMPLEMENTATION
21
21
sudo gcc raygui/raygui.o -shared -o /usr/local/lib/libraygui.so -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ copy miniaudiohelpers.lib libs\miniaudiohelpers.lib
5
5
del miniaudiohelpers.obj
6
6
del miniaudiohelpers.lib
7
7
8
- git clone -- branch 5.0 https:// github.com / raysan5/ raylib
8
+ git clone -- depth 1 -- branch 5.0 https:// github.com / raysan5/ raylib
9
9
cd raylib
10
10
mkdir build
11
11
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib ..\..\libs\raylib.lib
15
15
copy raylib\Debug\raylib.dll ..\..\libs\raylib.dll
16
16
cd ..\..
17
17
18
- git clone -- branch 4.0 https:// github.com / raysan5/ raygui
18
+ git clone -- depth 1 -- branch 4.0 https:// github.com / raysan5/ raygui
19
19
cd raygui
20
20
copy src\raygui.h src\raygui.c
21
21
cl / O2 / I../ raylib/ src/ / D_USRDLL / D_WINDLL / DRAYGUI_IMPLEMENTATION / DBUILD_LIBTYPE_SHARED src/ raygui.c / LD / Feraygui.dll / link / LIBPATH ../ raylib/ build/ raylib/ Debug/ raylib.lib / subsystem:windows / machine:x64
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ copy miniaudiohelpers.lib libs\miniaudiohelpers.lib
5
5
del miniaudiohelpers.obj
6
6
del miniaudiohelpers.lib
7
7
8
- git clone -- branch 5.0 https:// github.com / raysan5/ raylib
8
+ git clone -- depth 1 -- branch 5.0 https:// github.com / raysan5/ raylib
9
9
cd raylib
10
10
mkdir build
11
11
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib ..\..\libs\raylib.lib
15
15
copy raylib\Debug\raylib.dll ..\..\libs\raylib.dll
16
16
cd ..\..
17
17
18
- git clone -- branch 4.0 https:// github.com / raysan5/ raygui
18
+ git clone -- depth 1 -- branch 4.0 https:// github.com / raysan5/ raygui
19
19
cd raygui
20
20
copy src\raygui.h src\raygui.c
21
21
cl / O2 / I../ raylib/ src/ / D_USRDLL / D_WINDLL / DRAYGUI_IMPLEMENTATION / DBUILD_LIBTYPE_SHARED src/ raygui.c / LD / Feraygui.dll / link / LIBPATH ../ raylib/ build/ raylib/ Debug/ raylib.lib / subsystem:windows / machine:x64
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ copy miniaudiohelpers.lib C:\raylib\miniaudiohelpers.lib
4
4
del miniaudiohelpers.obj
5
5
del miniaudiohelpers.lib
6
6
7
- git clone -- branch 5.0 https:// github.com / raysan5/ raylib
7
+ git clone -- depth 1 -- branch 5.0 https:// github.com / raysan5/ raylib
8
8
cd raylib
9
9
mkdir build
10
10
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib C:\raylib\raylib.lib
15
15
copy raylib\Debug\raylib.dll C:\raylib\raylib.dll
16
16
cd ..\..
17
17
18
- git clone -- branch 4.0 https:// github.com / raysan5/ raygui
18
+ git clone -- depth 1 -- branch 4.0 https:// github.com / raysan5/ raygui
19
19
cd raygui
20
20
copy src\raygui.h src\raygui.c
21
21
cl / O2 / I../ raylib/ src/ / D_USRDLL / D_WINDLL / DRAYGUI_IMPLEMENTATION / DBUILD_LIBTYPE_SHARED src/ raygui.c / LD / Feraygui.dll / link / LIBPATH ../ raylib/ build/ raylib/ Debug/ raylib.lib / subsystem:windows / machine:x64
You can’t perform that action at this time.
0 commit comments