Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_20853741
flatbuffers
提交
2046bffa
F
flatbuffers
项目概览
qq_20853741
/
flatbuffers
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flatbuffers
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
2046bffa
编写于
12月 03, 2020
作者:
W
Wouter van Oortmerssen
提交者:
GitHub
12月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved various language tests from AppVeyor to GitHub Actions (#6300)
上级
338393f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
111 addition
and
40 deletion
+111
-40
.github/workflows/build.yml
.github/workflows/build.yml
+111
-0
appveyor.yml
appveyor.yml
+0
-40
未找到文件。
.github/workflows/build.yml
浏览文件 @
2046bffa
...
...
@@ -48,6 +48,20 @@ jobs:
name
:
Windows flatc binary
path
:
Release\flatc.exe
build-windows-2017
:
name
:
Build Windows
2017
runs-on
:
windows-2016
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Add msbuild to PATH
uses
:
microsoft/setup-msbuild@v1.0.2
-
name
:
cmake
run
:
cmake -G "Visual Studio 15 2017" -A x64 -DCMAKE_BUILD_TYPE=Release .
-
name
:
build
run
:
msbuild.exe FlatBuffers.sln /p:Configuration=Release /p:Platform=x64
-
name
:
test
run
:
Release\flattests.exe
build-mac
:
name
:
Build Mac
runs-on
:
macos-latest
...
...
@@ -82,3 +96,100 @@ jobs:
-
name
:
build
working-directory
:
android
run
:
bash ./gradlew clean build
build-java
:
name
:
Build Java
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
test
working-directory
:
tests
run
:
bash JavaTest.sh
build-rust
:
name
:
Build Rust
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
test
working-directory
:
tests
run
:
bash RustTest.sh
#build-js:
# name: Build JS
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: flatc
# # FIXME: make test script not rely on flatc
# run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4
# - name: test
# working-directory: tests
# run: bash JavaScriptTest.sh
#build-ts:
# name: Build TS
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: flatc
# # FIXME: make test script not rely on flatc
# run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4
# - name: test
# working-directory: tests
# run: bash TypeScriptTest.sh
build-python
:
name
:
Build Python
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
test
working-directory
:
tests
run
:
bash PythonTest.sh
#build-go:
# name: Build Go
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: flatc
# # FIXME: make test script not rely on flatc
# run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4
# - name: test
# working-directory: tests
# run: bash GoTest.sh
#build-csharp:
# name: Build CSharp
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: test
# working-directory: tests/FlatBuffers.Test
# run: bash NetTest.sh
build-php
:
name
:
Build PHP
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
flatc
# FIXME: make test script not rely on flatc
run
:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4
-
name
:
test
working-directory
:
tests
run
:
|
php phpTest.php
sh phpUnionVectorTest.sh
build-swift
:
name
:
Build Swift
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
test
working-directory
:
tests/FlatBuffers.Test.Swift
run
:
sh SwiftTest.sh
appveyor.yml
浏览文件 @
2046bffa
...
...
@@ -26,16 +26,6 @@ environment:
CMAKE_VS_VERSION
:
"
14
2015"
MONSTER_EXTRA
:
"
"
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio
2017
CMAKE_VS_VERSION
:
"
15
2017"
CMAKE_OPTIONS
:
"
-DFLATBUFFERS_ENABLE_PCH=1"
MONSTER_EXTRA
:
"
"
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio
2019
CMAKE_VS_VERSION
:
"
16
2019"
CMAKE_OPTIONS
:
"
-DFLATBUFFERS_ENABLE_PCH=1"
MONSTER_EXTRA
:
"
"
platform
:
-
x86
-
x64
...
...
@@ -49,8 +39,6 @@ before_build:
-
cmake . -G"Visual Studio %CMAKE_VS_VERSION%" -DFLATBUFFERS_CODE_SANITIZE=1 %CMAKE_OPTIONS%
# This cuts down on a lot of noise generated by xamarin warnings.
-
if exist "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
-
if exist "C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
-
if exist "C:\Program Files (x86)\MSBuild\16.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\16.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
build
:
project
:
ALL_BUILD.vcxproj
...
...
@@ -62,11 +50,6 @@ after_build:
install
:
-
set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
-
curl -sSf -o rustup-init.exe https://win.rustup.rs/
-
rustup-init.exe -y
-
set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
-
rustc -V
-
cargo -V
test_script
:
-
call .appveyor\check-generate-code.bat -b %CONFIGURATION%
...
...
@@ -78,33 +61,12 @@ test_script:
-
"
cd
.."
-
"
%CONFIGURATION%
\\
flattests.exe"
-
"
cd
tests"
-
rem "---------------- Java -----------------"
-
"
java
-version"
-
"
JavaTest.bat"
-
rem "---------------- Rust ----------------"
-
"
RustTest.bat"
-
rem "---------------- JS -----------------"
-
"
node
--version"
-
"
..
\\
%CONFIGURATION%
\\
flatc
-b
-I
include_test
monster_test.fbs
unicode_test.json"
-
"
npm
install"
-
"
npm
run
pretest"
-
"
node
JavaScriptTest
./monster_test_generated"
-
rem "-------------- Python ---------------"
-
where python
-
python --version
-
where pip
-
pip --version
-
where conda
-
conda --version
-
rem "installing flatbuffers python library"
-
pip install ../python
-
rem "testing without installing Numpy"
-
python py_test.py 0 0
0
-
rem "testing after installing Numpy - disabled"
# FIXME: This has a LOT of unnecessary dependencies and makes the tests fail
# with timeouts.
# - conda install --yes numpy
# - python py_test.py 0 0 0
-
rem "---------------- C# -----------------"
# Have to compile this here rather than in "build" above because AppVeyor only
# supports building one project??
...
...
@@ -118,8 +80,6 @@ test_script:
# Run tests with UNSAFE_BYTEBUFFER
-
"
msbuild.exe
/property:Configuration=Release;UnsafeByteBuffer=true;OutputPath=.tmp
/verbosity:minimal
FlatBuffers.Test.csproj"
-
"
.tmp
\\
FlatBuffers.Test.exe"
# TODO: add more languages.
-
"
cd
..
\\
.."
artifacts
:
-
path
:
$(CONFIGURATION)\flatc.exe
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录