forked from ugermann/ssplit-cpp
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (51 loc) · 1.74 KB
/
mac.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
name: Mac
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: brew install pcre2
- name: cmake
run: |
cmake -E make_directory build
cd build
cmake ..
- name: Compile
working-directory: build
run: make -j2 VERBOSE=1
- name: "Test one-paragraph-per-line (mapped)"
run: |
diff -qa <(./build/ssplit -mp -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
tests/sample.en) tests/sample.en.mp.n.expected
- name: "Test one-paragraph-per-line (streamed)"
run: |
diff -qa <(./build/ssplit -mp -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
< tests/sample.en) tests/sample.en.mp.n.expected
- name: "Test one-sentence-per-line (mapped)"
run: |
diff -qa <(./build/ssplit -ms -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
tests/sample.en) tests/sample.en.ms.n.expected
- name: "Test one-sentence-per-line (streamed)"
run: |
diff -qa <(./build/ssplit -ms -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
< tests/sample.en) tests/sample.en.ms.n.expected
- name: "Test wrapped-text (mapped)"
run: |
diff -qa <(./build/ssplit -mw -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
tests/sample.en.wrapped) tests/sample.en.wrapped.mw.n.expected
- name: "Test wrapped-text (streamed)"
run: |
diff -qa <(./build/ssplit -mw -n \
-p nonbreaking_prefixes/nonbreaking_prefix.en \
< tests/sample.en.wrapped) tests/sample.en.wrapped.mw.n.expected