-
Notifications
You must be signed in to change notification settings - Fork 17
102 lines (79 loc) · 2.88 KB
/
build-macos.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: MaxOS
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_engine:
name: Build NLP-ENGINE
runs-on: macOS-12
env:
VCPKG_DEFAULT_TRIPLET: x64-osx
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Vcpkg bootstrap Shell
run: ./bootstrap-vcpkg.sh
shell: bash
working-directory: vcpkg
- name: Install autoconf-archive
run: brew install autoconf-archive
- name: Install Brew
run: brew install automake
- name: Install 3rd Party
run: vcpkg install
working-directory: vcpkg
- name: List $RUNNER_WORKSPACE before build
run: find $RUNNER_WORKSPACE
shell: bash
- name: Make build directory
run: mkdir build
- name: Generate Solution MacOs
run: cmake -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD_TYPE=release -B build -S . -DCMAKE_CXX_FLAGS=-std=c++11 -DCMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake'
- name: Cmake Build all targets MaxOs
run: cmake --build build/ --target all
- name: Test executable --version
run: ./bin/nlp --version || true
- name: Copy nlp.exe to nlpm.exe
run: cp bin/nlp bin/nlpm.exe
shell: bash
- name: Upload nlpm.exe
uses: actions/upload-artifact@v3
with:
name: nlpm.exe
path: bin/nlpm.exe
- name: Copy libicutu.a to libicutum.a
run: cp vcpkg_installed/x64-osx/lib/libicutu.a vcpkg_installed/x64-osx/lib/libicutum.a
shell: bash
- name: Upload libicutum.a
uses: actions/upload-artifact@v3
with:
name: libicutum.a
path: vcpkg_installed/x64-osx/lib/libicutum.a
- name: Copy libicuuc.a to libicuucm.a
run: cp vcpkg_installed/x64-osx/lib/libicuuc.a vcpkg_installed/x64-osx/lib/libicuucm.a
shell: bash
- name: Upload libicuucm.a
uses: actions/upload-artifact@v3
with:
name: libicuucm.a
path: vcpkg_installed/x64-osx/lib/libicuucm.a
- name: Checkout Analyzers repo
uses: actions/checkout@v3
with:
repository: VisualText/analyzers
submodules: recursive
path: analyzers
- name: List runner workspace
run: find $RUNNER_WORKSPACE
shell: bash
- name: Run English Parser
run: ./bin/nlp -ANA ./analyzers/parse-en-us -WORK ./ ./analyzers/parse-en-us/input/doj.txt -DEV || true
- name: Full English Test
uses: LouisBrunner/[email protected]
with:
old: .github/workflows/tests/parse-en-us/final.tree
new: ./analyzers/parse-en-us/input/doj.txt_log/final.tree
mode: addition
tolerance: same
output: parse-en-us-diff-mac.txt