Skip to content

Commit 96a32c3

Browse files
add 32 bit linux build
1 parent 4731318 commit 96a32c3

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,47 @@ jobs:
5454
name: jaylib-linux-x86_64
5555
path: ./*.jar
5656

57+
build-linux-32bit:
58+
runs-on: ubuntu-latest
59+
container:
60+
image: electronstudio/ubuntu16-modern:i386
61+
options: --user root
62+
volumes:
63+
# override /__e/node20 because GitHub Actions uses a version that requires too-recent glibc
64+
- /tmp:/__e/node20
65+
66+
steps:
67+
- name: fix node
68+
run: |
69+
ln -s /usr/local/bin /__e/node20/bin
70+
71+
- uses: actions/checkout@v2
72+
with:
73+
submodules: recursive
74+
75+
- name: Build raylib
76+
run: |
77+
cd raylib
78+
mkdir build
79+
cd build
80+
cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
81+
make -j2
82+
make install
83+
84+
- name: Build jaylib
85+
env:
86+
RAYLIB_PLATFORM: linux-x86
87+
run: |
88+
./build-java.sh
89+
./build-native.sh
90+
./build-docs.sh
91+
92+
- name: Upload jar
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: jaylib-linux-x86
96+
path: ./*.jar
97+
5798
# build-linux-arm:
5899
# runs-on: rpi
59100
#

0 commit comments

Comments
 (0)