From c6084f2918fc0847c599d851a877fe2b4578d931 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 19 Feb 2018 03:17:57 +0100 Subject: [PATCH] gitlab-ci: cross compile for Mingw32 --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ed8d89e..6a436421 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,23 @@ before_script: - apt-get update -qq && apt-get install -y -qq libsdl1.2-dev libpng-dev libsdl-ttf2.0-dev libsdl-image1.2-dev liblua5.1-0-dev zip + - apt-get install -y -qq gcc-mingw-w64-i686 mingw-w64-tools stages: - build -job1: +job_linux: stage: build script: "cd src && make && make ziprelease" artifacts: paths: - "*.zip" +job_win32: + stage: build + script: + - "WIN32CROSS=1 make 3rdparty" + - "WIN32CROSS=1 make -j3" + - "WIN32CROSS=1 make ziprelease" + artifacts: + paths: + - "*.zip"