Skip to content

Commit 6448a6d

Browse files
switch to use custom docker image
1 parent a16d126 commit 6448a6d

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,56 +15,14 @@ jobs:
1515
build-linux:
1616
runs-on: ubuntu-latest
1717
container:
18-
image: ubuntu:16.04
18+
image: electronstudio/ubuntu16-modern:latest
1919
options: --user root
20-
volumes:
21-
# override /__e/node20 because GitHub Actions uses a version that requires too-recent glibc
22-
# see "Install node.js for GitHub Actions" below
23-
- /tmp:/__e/node20
2420

2521
steps:
26-
- name: Install dependencies
27-
run: |
28-
apt update
29-
apt install -y software-properties-common
30-
add-apt-repository ppa:git-core/ppa -y
31-
apt update
32-
apt install -y wget curl git build-essential ca-certificates libssl-dev
33-
apt install -y unzip libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
34-
35-
- name: Build and install CMake 3.31.6
36-
run: |
37-
cd /tmp
38-
wget https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6.tar.gz
39-
tar -xzf cmake-3.31.6.tar.gz
40-
cd cmake-3.31.6
41-
./bootstrap --prefix=/usr/local
42-
make -j$(nproc)
43-
make install
44-
ln -sf /usr/local/bin/cmake /usr/bin/cmake
45-
cmake --version
46-
47-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
48-
- name: hack node
49-
run: |
50-
# Install a Node.js version that works in older Ubuntu containers (read: does not require very recent glibc)
51-
NODE_VERSION=v20.18.1 &&
52-
NODE_TAR_FILE=node-$NODE_VERSION-linux-x64-glibc-217.tar.gz &&
53-
NODE_URL=https://unofficial-builds.nodejs.org/download/release/$NODE_VERSION/$NODE_TAR_FILE &&
54-
curl -Lo /tmp/$NODE_TAR_FILE $NODE_URL &&
55-
tar -C /__e/node20 -x --strip-components=1 -f /tmp/$NODE_TAR_FILE
5622
- uses: actions/checkout@v2
5723
with:
5824
submodules: recursive
5925

60-
61-
- name: Setup Java 8
62-
run: |
63-
apt install -y openjdk-8-jdk
64-
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
65-
echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $GITHUB_ENV
66-
echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
67-
6826
- name: Build raylib
6927
run: |
7028
cd raylib

0 commit comments

Comments
 (0)