diff --git a/.github/workflows/BuildAndTest.yml b/.github/workflows/BuildAndTest.yml index 1cc6649f..7d778c87 100644 --- a/.github/workflows/BuildAndTest.yml +++ b/.github/workflows/BuildAndTest.yml @@ -23,3 +23,7 @@ jobs: run: make build_for_testing_ios - name: Test for iOS run: make test_without_building_ios + - name: Build for watchOS + run: make build_for_testing_watchos + - name: Test for watchOS + run: make test_without_building_watchos diff --git a/Makefile b/Makefile index f2f0b174..c6ce8ae0 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ XCODEBUILD_OPTIONS_IOS=\ -scheme $(PROJECT_NAME) \ -workspace . +XCODEBUILD_OPTIONS_WATCHOS=\ + -configuration Debug \ + -destination platform='watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=latest' \ + -scheme $(PROJECT_NAME) \ + -workspace . + .PHONY: setup_brew setup_brew: brew update && brew install xcbeautify @@ -18,6 +24,10 @@ build_ios: build_for_testing_ios: set -o pipefail && xcodebuild $(XCODEBUILD_OPTIONS_IOS) build-for-testing | xcbeautify +.PHONY: build_for_testing_watchos +build_for_testing_watchos: + set -o pipefail && xcodebuild $(XCODEBUILD_OPTIONS_WATCHOS) build-for-testing | xcbeautify + .PHONY: test_ios test_ios: set -o pipefail && xcodebuild $(XCODEBUILD_OPTIONS_IOS) test | xcbeautify @@ -25,3 +35,7 @@ test_ios: .PHONY: test_without_building_ios test_without_building_ios: set -o pipefail && xcodebuild $(XCODEBUILD_OPTIONS_IOS) test-without-building | xcbeautify + +.PHONY: test_without_building_watchos +test_without_building_watchos: + set -o pipefail && xcodebuild $(XCODEBUILD_OPTIONS_WATCHOS) test-without-building | xcbeautify