Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Libraries
mruby
Commits
9712379e
Unverified
Commit
9712379e
authored
Dec 14, 2019
by
Takeshi Watanabe
Committed by
Yukihiro "Matz" Matsumoto
Oct 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start GitHub Actions; close #4903
parent
b67955b8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
7 deletions
+50
-7
.github/workflows/build.yml
.github/workflows/build.yml
+24
-7
lib/mruby/build.rb
lib/mruby/build.rb
+8
-0
target/travis.rb
target/travis.rb
+18
-0
No files found.
.github/workflows/build.yml
View file @
9712379e
...
@@ -6,7 +6,7 @@ jobs:
...
@@ -6,7 +6,7 @@ jobs:
Ubuntu-1604
:
Ubuntu-1604
:
runs-on
:
ubuntu-16.04
runs-on
:
ubuntu-16.04
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
apt
-
name
:
apt
...
@@ -19,7 +19,7 @@ jobs:
...
@@ -19,7 +19,7 @@ jobs:
Ubuntu-1804-gcc
:
Ubuntu-1804-gcc
:
runs-on
:
ubuntu-18.04
runs-on
:
ubuntu-18.04
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
CC
:
gcc
CC
:
gcc
CXX
:
g++
CXX
:
g++
steps
:
steps
:
...
@@ -34,7 +34,7 @@ jobs:
...
@@ -34,7 +34,7 @@ jobs:
Ubuntu-1804-clang
:
Ubuntu-1804-clang
:
runs-on
:
ubuntu-18.04
runs-on
:
ubuntu-18.04
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
CC
:
clang
CC
:
clang
CXX
:
clang++
CXX
:
clang++
steps
:
steps
:
...
@@ -49,7 +49,7 @@ jobs:
...
@@ -49,7 +49,7 @@ jobs:
macOS
:
macOS
:
runs-on
:
macos-latest
runs-on
:
macos-latest
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
brew
-
name
:
brew
...
@@ -68,7 +68,7 @@ jobs:
...
@@ -68,7 +68,7 @@ jobs:
-
name
:
build
-
name
:
build
run
:
rake -E 'STDOUT.sync=true' test
run
:
rake -E 'STDOUT.sync=true' test
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
CFLAGS
:
-g -O1 -Wall -Wundef
CFLAGS
:
-g -O1 -Wall -Wundef
Windows-Cygwin
:
Windows-Cygwin
:
...
@@ -94,9 +94,26 @@ jobs:
...
@@ -94,9 +94,26 @@ jobs:
shell
:
cmd
shell
:
cmd
run
:
C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' -m
run
:
C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' -m
env
:
env
:
MRUBY_
CONFIG
:
travis_config.rb
MRUBY_
TARGET
:
travis
-
name
:
test
-
name
:
test
shell
:
cmd
shell
:
cmd
run
:
C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' test
run
:
C:\tools\cygwin\bin\ruby.exe /usr/bin/rake -E 'STDOUT.sync=true' test
env
:
env
:
MRUBY_CONFIG
:
travis_config.rb
MRUBY_TARGET
:
travis
Windows-VC
:
runs-on
:
windows-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
chocolatey
run
:
choco install -y ruby gperf
-
name
:
build and test
shell
:
cmd
run
:
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
rake -E "STDOUT.sync=true" -m -j4 -v test
env
:
MRUBY_TARGET
:
appveyor
# TODO(take-cheeze): Re-enable /O2
CFLAGS
:
"
/c
/nologo
/W3
/we4013
/Zi
/MD
/D_CRT_SECURE_NO_WARNINGS"
CXXFLAGS
:
"
/c
/nologo
/W3
/Zi
/MD
/EHs
/D_CRT_SECURE_NO_WARNINGS"
lib/mruby/build.rb
View file @
9712379e
...
@@ -276,6 +276,14 @@ EOS
...
@@ -276,6 +276,14 @@ EOS
end
end
end
end
def
cygwin_filename
(
name
)
if
name
.
is_a?
(
Array
)
name
.
flatten
.
map
{
|
n
|
cygwin_filename
(
n
)
}
else
`cygpath -w "
#{
filename
(
name
)
}
"`
.
strip
end
end
def
exefile
(
name
)
def
exefile
(
name
)
if
name
.
is_a?
(
Array
)
if
name
.
is_a?
(
Array
)
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
...
...
target/travis.rb
View file @
9712379e
MRuby
::
Build
.
new
(
'debug'
)
do
|
conf
|
toolchain
:gcc
yacc
.
command
=
ENV
[
'YACC'
]
||
'bison'
enable_debug
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement)
conf
.
compilers
.
each
do
|
c
|
c
.
defines
+=
%w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE)
end
build_mrbc_exec
end
MRuby
::
Build
.
new
(
'full-debug'
)
do
|
conf
|
MRuby
::
Build
.
new
(
'full-debug'
)
do
|
conf
|
toolchain
:gcc
toolchain
:gcc
yacc
.
command
=
ENV
[
'YACC'
]
||
'bison'
enable_debug
enable_debug
# include all core GEMs
# include all core GEMs
...
@@ -12,6 +28,7 @@ end
...
@@ -12,6 +28,7 @@ end
MRuby
::
Build
.
new
do
|
conf
|
MRuby
::
Build
.
new
do
|
conf
|
toolchain
:gcc
toolchain
:gcc
yacc
.
command
=
ENV
[
'YACC'
]
||
'bison'
# include all core GEMs
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
gembox
'full-core'
...
@@ -25,6 +42,7 @@ end
...
@@ -25,6 +42,7 @@ end
MRuby
::
Build
.
new
(
'cxx_abi'
)
do
|
conf
|
MRuby
::
Build
.
new
(
'cxx_abi'
)
do
|
conf
|
toolchain
:gcc
toolchain
:gcc
yacc
.
command
=
ENV
[
'YACC'
]
||
'bison'
conf
.
gembox
'full-core'
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-fpermissive)
conf
.
cc
.
flags
+=
%w(-fpermissive)
...
...
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