Add linux-x64 compile target

This commit is contained in:
2024-06-24 09:26:03 -05:00
parent 04be82f034
commit 4b77d1b613
8 changed files with 85 additions and 17 deletions

3
ci/linux-x64/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM debian:latest
RUN apt update && apt upgrade -y && apt install -y git cmake build-essential libx11-dev libgtk-3-dev python3 python3-pip
RUN ln -s /usr/bin/python3 /usr/bin/python

View File

@ -0,0 +1,18 @@
services:
dawn-linux64:
build: .
volumes:
- ./../../:/Dawn
working_dir: /Dawn
command:
- /bin/sh
- -c
- |
ln -s /usr/bin/python3 /usr/bin/python
if [ ! -d ./lib/glfw ]; then
git submodule update --init
fi
mkdir -p ./build/linux-x64
cd ./build/linux-x64
cmake ../.. -DDAWN_BUILD_SYSTEM=linux -DGLFW_BUILD_X11=ON -DGLFW_BUILD_WAYLAND=OFF
make