Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
a7660331a
tesseract
提交
d3be2edf
T
tesseract
项目概览
a7660331a
/
tesseract
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tesseract
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
d3be2edf
编写于
1月 23, 2021
作者:
S
Shreeshrii
提交者:
GitHub
1月 23, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update dailycmake.yml
上级
4b84a56d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
59 deletion
+30
-59
.github/workflows/dailycmake.yml
.github/workflows/dailycmake.yml
+30
-59
未找到文件。
.github/workflows/dailycmake.yml
浏览文件 @
d3be2edf
...
...
@@ -3,91 +3,54 @@ name: dailycmake
on
:
#push:
schedule
:
# every day
-
cron
:
15 10 * * *
-
cron
:
0 10 * * *
jobs
:
build-gcc-
linux
:
linux
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-18.04
,
ubuntu-20.04
]
gcc_version
:
[
10
,
9
,
8
,
7
,
6
,
5
]
build_type
:
[
Release
,
Debug
]
exclude
:
-
{
gcc_version
:
5
,
os
:
ubuntu-20.04
}
-
{
gcc_version
:
6
,
os
:
ubuntu-20.04
}
compiler
:
[
g++
,
clang++
]
compiler_version
:
[
7
,
8
,
9
,
10
]
build_type
:
[
Release
]
steps
:
-
name
:
Install compiler
run
:
sudo apt-get install -y
gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc
_version }}
run
:
sudo apt-get install -y
${{ matrix.compiler }}-${{ matrix.compiler
_version }}
-
name
:
Install dependencies
run
:
sudo apt-get install libleptonica-dev libpango1.0-dev -y
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Build and run
run
:
|
export CC=gcc-${{ matrix.gcc_version }}
export CXX=g++-${{ matrix.gcc_version }}
-
name
:
Configure
run
:
|
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
cmake -DCMAKE_
CXX_COMPILER=${{ matrix.compiler }}-${{ matrix.compiler_version }} -DCMAKE_
BUILD_TYPE=${{ matrix.build_type }} ..
-
name
:
Build
run
:
cmake --build build --config ${{ matrix.build_type }}
build-clang-linux
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-18.04
,
ubuntu-20.04
]
clang_version
:
[
11
,
10
,
9
,
8
,
7
]
build_type
:
[
Release
,
Debug
]
exclude
:
-
{
clang_version
:
11
,
os
:
ubuntu-18.04
}
steps
:
-
name
:
Install compiler
run
:
sudo apt-get install -y clang-${{ matrix.clang_version }}
-
name
:
Install dependencies
run
:
sudo apt-get install libleptonica-dev libpango1.0-dev -y
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Build and run
run
:
|
export CC=clang-${{ matrix.clang_version }}
export CXX=clang++-${{ matrix.clang_version }}
-
name
:
Configure
cmake --build build --config ${{ matrix.build_type }}
-
name
:
Display Compiler Version
run
:
|
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
-
name
:
Build
run
:
cmake --build build --config ${{ matrix.build_type }}
build-windows
:
${{ matrix.compiler }}-${{ matrix.compiler_version }} -v
if
:
always()
windows
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
windows-latest
]
build_type
:
[
Release
,
Debug
]
build_type
:
[
Release
]
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
uses
:
egorpugin/sw-action@master
-
name
:
Configure
run
:
|
...
...
@@ -95,25 +58,33 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
-
name
:
Build
run
:
cmake --build build --config ${{ matrix.build_type }}
run
:
|
cmake --build build --config ${{ matrix.build_type }}
build-
macos
:
macos
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
macos-latest
]
build_type
:
[
Release
,
Debug
]
build_type
:
[
Release
]
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
uses
:
egorpugin/sw-action@master
-
name
:
Install dependencies
run
:
|
brew install leptonica pango libarchive
-
name
:
Configure
run
:
|
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
export 'PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig'
export LDFLAGS="-L/usr/local/opt/libarchive/lib"
export CPPFLAGS="-I/usr/local/opt/libarchive/include"
cmake -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
-
name
:
Build
run
:
cmake --build build --config ${{ matrix.build_type }}
run
:
|
cmake --build build --config ${{ matrix.build_type }}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录