Commit df4db7a9 authored by nanahira's avatar nanahira

prebuild script in ci

parent ef632ca4
#!/bin/bash
set -x
set -o errexit
# PROCESSOR_COUNT=4
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
cd libevent-2.0.22-stable
./configure --prefix=$PWD/libevent-stable --disable-openssl --enable-static=yes --enable-shared=no
make -j$PROCESSOR_COUNT
make install
cd ..
mv libevent-2.0.22-stable/libevent-stable .
rm -rf libevent-2.0.22-stable
...@@ -10,6 +10,7 @@ build ...@@ -10,6 +10,7 @@ build
# dependencies # dependencies
/event /event
/libevent*
/freetype /freetype
/sqlite3 /sqlite3
/irrklang /irrklang
......
...@@ -54,19 +54,24 @@ mat_linux: ...@@ -54,19 +54,24 @@ mat_linux:
- apt update; apt -y install git wget tar - apt update; apt -y install git wget tar
- git clone --depth=1 https://code.mycard.moe/mycard/irrlicht irrlicht_linux - git clone --depth=1 https://code.mycard.moe/mycard/irrlicht irrlicht_linux
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-linux.tar.gz | tar zfx - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx - - env PROCESSOR_COUNT=$(nproc) ./.ci/libevent-prebuild.sh
- cd libevent-2.0.22-stable
- ./configure --prefix=$PWD/libevent-stable --disable-openssl --enable-static=yes --enable-shared=no
- make -j$(nproc)
- make install
- cd ..
- mv libevent-2.0.22-stable/libevent-stable .
artifacts: artifacts:
paths: paths:
- premake5 - premake5
- irrlicht_linux - irrlicht_linux
- libevent-stable - libevent-stable
mat_macos_libevent:
stage: prepare
tags:
- macos
variables:
PROCESSOR_COUNT: '4'
script: ./.ci/libevent-prebuild.sh
artifacts:
paths:
- libevent-stable
mat_macos: mat_macos:
stage: prepare stage: prepare
tags: tags:
...@@ -172,6 +177,7 @@ exec_macos: ...@@ -172,6 +177,7 @@ exec_macos:
- mat_irrklang - mat_irrklang
- mat_macos - mat_macos
- mat_common - mat_common
- mat_macos_libevent
cache: cache:
paths: paths:
- bin/ - bin/
...@@ -181,7 +187,7 @@ exec_macos: ...@@ -181,7 +187,7 @@ exec_macos:
- brew install libevent dylibbundler - brew install libevent dylibbundler
- sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/ - sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
#- sudo cp -rf irrklang/include /usr/local/include/irrklang #- sudo cp -rf irrklang/include /usr/local/include/irrklang
- ./premake5 gmake --cc=clang - env YGOPRO_LIBEVENT_STATIC_PATH=$PWD/libevent-stable ./premake5 gmake --cc=clang
- cd build - cd build
- make config=release -j4 - make config=release -j4
- cd .. - cd ..
......
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