Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mancausoft committed Jan 12, 2025
1 parent 2ba0ed5 commit e5c3c8a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-rpi3-raylib-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ./sysroot
key: sysroot-buster
key: sysroot-buster-2

- name: Create sysroot for Raspbian Buster
if: steps.restore-cache-sysroot.outputs.cache-hit != 'true'
Expand All @@ -40,25 +40,23 @@ jobs:
sudo chroot ./sysroot apt update
sudo chroot ./sysroot apt install -y libgbm-dev libasound2-dev libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev libdrm-dev build-essential
- name: Create sysroot for Raspbian Buster
run: |
sudo chroot ./sysroot apt install -y build-essential
- name: Save cache sysroot
if: steps.restore-cache-sysroot.outputs.cache-hit != 'true'
id: save-cache-sysroot
uses: actions/cache/save@v4
with:
path: ./sysroot
key: sysroot-buster-2

- name: Build raylib (static) for Raspberry Pi

run: |
export SYSROOT=$(pwd)/sysroot
find sysroot -name stdarg.h
git clone --depth 1 https://github.com/raysan5/raylib.git
cd raylib/src
echo $SYSROOT
ls ../../sysroot/usr/include
make PLATFORM=PLATFORM_DRM USE_RPI_CROSS_COMPILER=TRUE RPI_TOOLCHAIN=/usr RPI_TOOLCHAIN_NAME=arm-linux-gnueabihf INCLUDE_PATHS=' -nostdinc -I . -I ../../sysroot/usr/include -I ../../sysroot/usr/include/libdrm'
make PLATFORM=PLATFORM_DRM USE_RPI_CROSS_COMPILER=TRUE RPI_TOOLCHAIN=/usr RPI_TOOLCHAIN_NAME=arm-linux-gnueabihf INCLUDE_PATHS=' -nostdinc -I . -I ../../sysroot/usr/lib/gcc/arm-linux-gnueabihf/8/include -I ../../sysroot/usr/include -I ../../sysroot/usr/include/libdrm'
- name: Build the project
Expand Down

0 comments on commit e5c3c8a

Please sign in to comment.