-
Notifications
You must be signed in to change notification settings - Fork 77
61 lines (60 loc) · 2.29 KB
/
continuous-integration-workflow-xcode-latest.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
name: Build
on: [push]
jobs:
build:
name: Build and Test with Latest Xcode
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build McBopomofoLMLibTest
run: cmake -S . -B build
working-directory: Source/Engine
- name: Run McBopomofoLMLibTest
run: make runMcBopomofoLMLibTest
working-directory: Source/Engine/build
- name: Build MandarinTest
run: cmake -S . -B build
working-directory: Source/Engine/Mandarin
- name: Run MandarinTest
run: make runMandarinTest
working-directory: Source/Engine/Mandarin/build
- name: Build Gramambular2Test
run: cmake -S . -B build
working-directory: Source/Engine/gramambular2
- name: Run Gramambular2Test
run: make runGramambular2Test
working-directory: Source/Engine/gramambular2/build
- name: Test McBopomofo App Bundle
run: xcodebuild -scheme McBopomofo -configuration Debug test
- name: Test CandidateUI
run: swift test
working-directory: Packages/CandidateUI
- name: Test OpenCCBridge
run: swift test
working-directory: Packages/OpenCCBridge
- name: Test VXHanConvert
run: swift test
working-directory: Packages/VXHanConvert
- name: Test NSStringUtils
run: swift test
working-directory: Packages/NSStringUtils
- name: Clean McBopomofo for testing
run: xcodebuild -scheme McBopomofo -configuration Debug clean
- name: Test McBopomofo
run: xcodebuild -scheme McBopomofo -configuration Debug test
- name: Clean McBopomofo
run: xcodebuild -scheme McBopomofo -configuration Release clean
- name: Clean McBopomofoInstaller
run: xcodebuild -scheme McBopomofoInstaller -configuration Release clean
- name: Build McBopomofo
run: xcodebuild -scheme McBopomofo -configuration Release build
- name: Build McBopomofoInstaller
run: xcodebuild -scheme McBopomofoInstaller -configuration Release build
- name: Test data files
run: make check
working-directory: Source/Data