Commit 3e3c945a authored by nanahira's avatar nanahira

ci

parent 0511ef7a
stages: stages:
- prepare - prepare
- prepare2
- build - build
- deploy - deploy
...@@ -84,20 +83,6 @@ mat_windows: ...@@ -84,20 +83,6 @@ mat_windows:
# sqlite3 # sqlite3
- wget https://cdn01.moecube.com/ygopro-build-materials/sqlite-amalgamation-3310100.zip - wget https://cdn01.moecube.com/ygopro-build-materials/sqlite-amalgamation-3310100.zip
- 7z x -y sqlite-amalgamation-3310100.zip - 7z x -y sqlite-amalgamation-3310100.zip
- cp -rf premake/* .
artifacts:
paths:
- premake5.exe
- event
- freetype
- sqlite3
mat_windows_irrlicht_dl:
stage: prepare
tags:
- linux
script:
- apt update; apt -y install p7zip-full wget
# irrlicht # irrlicht
- wget https://cdn01.moecube.com/ygopro-build-materials/irrlicht-1.8.4.zip - wget https://cdn01.moecube.com/ygopro-build-materials/irrlicht-1.8.4.zip
- 7z x -y irrlicht-1.8.4.zip - 7z x -y irrlicht-1.8.4.zip
...@@ -106,17 +91,46 @@ mat_windows_irrlicht_dl: ...@@ -106,17 +91,46 @@ mat_windows_irrlicht_dl:
- mv irrlicht-1.8.4/include irrlicht/include - mv irrlicht-1.8.4/include irrlicht/include
artifacts: artifacts:
paths: paths:
- premake5.exe
- event
- freetype
- sqlite3
- irrlicht - irrlicht
mat_windows_irrlicht: windows_exec:
stage: prepare2 stage: build
tags: tags:
- vs - vs
dependencies: dependencies:
- mat_windows_irrlicht_dl - mat_lua
- mat_irrklang
- mat_windows
script: script:
#- choco install -y patch - xcopy /E premake\* .
- cmd /C "patch -p0 < irrlicht\irrlicht.patch" - cmd /C "patch -p0 < irrlicht\irrlicht.patch"
- '.\premake5.exe vs2019'
- cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" /m /p:Configuration=Release'
- move bin\release\ygopro.exe .
artifacts: artifacts:
paths: paths:
- irrlicht - ygopro.exe
linux_exec:
stage: build
tags:
- linux
dependencies:
- mat_irrklang
- mat_linux
script:
- apt update; apt -y install git build-essential libfreetype6-dev libevent-dev libsqlite3-dev libgl1-mesa-dev libglu-dev liblua5.3-dev libxxf86vm-dev p7zip-full
- git submodule update --init
- ./premake5 gmake
- cd build
- make config=release -j$(nproc)
- cd ..
- mv bin/release/ygopro .
- strip ygopro
artifacts:
paths:
- ygopro
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment