Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro
Commits
df4db7a9
Commit
df4db7a9
authored
Jul 16, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prebuild script in ci
parent
ef632ca4
Pipeline
#4137
canceled with stages
in 9 minutes and 9 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
.ci/libevent-prebuild.sh
.ci/libevent-prebuild.sh
+13
-0
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+14
-8
No files found.
.ci/libevent-prebuild.sh
0 → 100755
View file @
df4db7a9
#!/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
.gitignore
View file @
df4db7a9
...
@@ -10,6 +10,7 @@ build
...
@@ -10,6 +10,7 @@ build
# dependencies
# dependencies
/event
/event
/libevent*
/freetype
/freetype
/sqlite3
/sqlite3
/irrklang
/irrklang
...
...
.gitlab-ci.yml
View file @
df4db7a9
...
@@ -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 ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment