-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
88 lines (86 loc) · 2.24 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
pull_request:
release:
types:
- created
jobs:
build-ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v2
with:
path: tesseract_vcpkg
- uses: actions/checkout@v2
with:
path: vcpkg
repository: microsoft/vcpkg
- name: apt update
run: sudo apt update
- name: apt
run: sudo apt install zip unzip build-essential pkg-config -qq
- name: bootstrap vcpkg
run: ./bootstrap-vcpkg.sh
working-directory: vcpkg
- name: build tesseract
run: ./vcpkg install --overlay-ports=../tesseract_vcpkg/ports tesseract_common
working-directory: vcpkg
- uses: actions/upload-artifact@v2
if: always()
with:
name: logs-${{ matrix.os }}
path: |
vcpkg/buildtrees/*/*.txt
vcpkg/buildtrees/*/*.log
build-win:
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
with:
path: tesseract_vcpkg
- uses: actions/checkout@v2
with:
path: vcpkg
repository: microsoft/vcpkg
- name: bootstrap vcpkg
run: bootstrap-vcpkg
working-directory: vcpkg
- name: build tesseract
run: vcpkg install --triplet x64-windows --overlay-ports=../tesseract_vcpkg/ports tesseract_common
working-directory: vcpkg
- uses: actions/upload-artifact@v2
if: always()
with:
name: logs-win
path: |
vcpkg/buildtrees/*/*.txt
vcpkg/buildtrees/*/*.log
build-osx:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
path: tesseract_vcpkg
- uses: actions/checkout@v2
with:
path: vcpkg
repository: microsoft/vcpkg
- name: bootstrap vcpkg
run: ./bootstrap-vcpkg.sh
working-directory: vcpkg
- name: build tesseract
run: ./vcpkg install --overlay-ports=../tesseract_vcpkg/ports tesseract_common
working-directory: vcpkg
- uses: actions/upload-artifact@v2
if: always()
with:
name: logs-osx
path: |
vcpkg/buildtrees/*/*.txt
vcpkg/buildtrees/*/*.log