Skip to content

Commit 8c5ed1d

Browse files
use docker to build linux
1 parent 17aea74 commit 8c5ed1d

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,25 @@ jobs:
182182

183183

184184
build-linux:
185-
runs-on: ubuntu-22.04
185+
runs-on: ubuntu-latest
186+
container:
187+
image: electronstudio/ubuntu16-modern:latest
188+
options: --user root
189+
volumes:
190+
# override /__e/node20 because GitHub Actions uses a version that requires too-recent glibc
191+
- /tmp:/__e/node20
186192
strategy:
187193
# You can use PyPy versions in python-version.
188194
# For example, pypy2 and pypy3
189195
matrix:
190196
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14.0-rc.1', 'pypy-3.10', 'pypy-3.11' ]
191197
raylib-platform: ['Desktop', 'SDL', 'DRM']
192198
steps:
193-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
194-
- uses: actions/checkout@v4
199+
- name: fix node
200+
run: |
201+
ln -s /usr/local/bin /__e/node20/bin
202+
203+
- uses: actions/checkout@v2
195204
with:
196205
submodules: recursive
197206

@@ -203,10 +212,6 @@ jobs:
203212
# The target architecture (x86, x64) of the Python interpreter.
204213
architecture: x64
205214

206-
- name: install prereqs
207-
run: |
208-
sudo apt update
209-
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
210215
- name: Build SDL
211216
run: |
212217
wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.30.7.tar.gz

0 commit comments

Comments
 (0)