From a1480533234e77d293d8bee68823ca7128801d1e Mon Sep 17 00:00:00 2001 From: zonble Date: Thu, 3 Feb 2022 02:05:56 +0800 Subject: [PATCH] Updates CI settings. --- ...tinuous-integration-workflow-xcode-12.yml} | 5 +- ...uous-integration-workflow-xcode-latest.yml | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) rename .github/workflows/{continuous-integration-workflow.yml => continuous-integration-workflow-xcode-12.yml} (92%) create mode 100644 .github/workflows/continuous-integration-workflow-xcode-latest.yml diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow-xcode-12.yml similarity index 92% rename from .github/workflows/continuous-integration-workflow.yml rename to .github/workflows/continuous-integration-workflow-xcode-12.yml index 0d126720..11696803 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow-xcode-12.yml @@ -3,12 +3,15 @@ on: [push] jobs: build: - name: Build and Test + name: Build and Test with Xcode 12.4 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: '12.4' - name: Build McBopomofoLMLibTest run: cmake -S . -B build working-directory: Source/Engine diff --git a/.github/workflows/continuous-integration-workflow-xcode-latest.yml b/.github/workflows/continuous-integration-workflow-xcode-latest.yml new file mode 100644 index 00000000..7c155bd1 --- /dev/null +++ b/.github/workflows/continuous-integration-workflow-xcode-latest.yml @@ -0,0 +1,48 @@ +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 runTest + working-directory: Source/Engine/build + - name: Build MandarinTest + run: cmake -S . -B build + working-directory: Source/Engine/Mandarin + - name: Run MandarinTest + run: make runTest + working-directory: Source/Engine/Mandarin/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 + 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