File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,35 @@ jobs:
4343 sudo apt-get update
4444 sudo apt-get install -y build-essential cmake libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
4545
46- - name : Configure raylib with CMake
46+ - name : Install Cross-Compilation Tools for ARM64
47+ if : matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
48+ run : |
49+ sudo apt-get update
50+ sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
51+
52+ - name : Configure Raylib with CMake for ARM64 on Linux
53+ if : matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
54+ run : |
55+ cd raylib
56+ cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
57+
58+ - name : Configure Raylib with CMake on Windows
59+ if : matrix.os == 'windows-latest'
60+ run : |
61+ cd raylib
62+ cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE=Release -A ${{ matrix.arch-cmake }} -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
63+
64+ - name : Configure Raylib with CMake on macOS
65+ if : matrix.os == 'macos-latest'
66+ run : |
67+ cd raylib
68+ cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch-cmake }} -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
69+
70+ - name : Configure Raylib with CMake on Linux (x86_64)
71+ if : matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64'
4772 run : |
4873 cd raylib
49- cmake -S ./ -B ./build -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
74+ cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE=Release - DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
5075
5176 - name : Build raylib
5277 run : cmake --build raylib/build --config Release
You can’t perform that action at this time.
0 commit comments