Skip to content

Commit 2fc4d76

Browse files
use docker to build linux
1 parent 17aea74 commit 2fc4d76

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,13 @@ 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
@@ -191,7 +197,7 @@ jobs:
191197
raylib-platform: ['Desktop', 'SDL', 'DRM']
192198
steps:
193199
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
194-
- uses: actions/checkout@v4
200+
- uses: actions/checkout@v2
195201
with:
196202
submodules: recursive
197203

@@ -203,10 +209,6 @@ jobs:
203209
# The target architecture (x86, x64) of the Python interpreter.
204210
architecture: x64
205211

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
210212
- name: Build SDL
211213
run: |
212214
wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.30.7.tar.gz

0 commit comments

Comments
 (0)