Skip to content

Commit

Permalink
try x86
Browse files Browse the repository at this point in the history
  • Loading branch information
electronstudio committed Dec 2, 2024
1 parent 0a57429 commit a66f9c0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,49 @@ jobs:
name: jar
path: ./*.jar


build-linux-x86:
runs-on: ubuntu-20.04

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '8'


- name: Build raylib
run: |
sudo apt update
sudo apt install gcc-multilib
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
cd raylib
mkdir build
cd build
cmake -DCMAKE_C_FLAGS="-m32" -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
make -j2
sudo make install
ldd /usr/local/lib/libraylib.a
- name: Build jaylib
env:
RAYLIB_PLATFORM: linux-x86
run: |
./build-java.sh
./build-native.sh
./build-docs.sh
- name: Upload jar
uses: actions/[email protected]
with:
name: jar
path: ./*.jar

# build-linux-arm:
# runs-on: rpi
#
Expand Down

0 comments on commit a66f9c0

Please sign in to comment.