diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12573caec9..cfe5602921 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,12 +65,15 @@ jobs: os_list: "17.0" device_name: "Apple TV 4K (3rd generation) (at 1080p)" # Became much slower on CI with macos-14 images, while working fine locally - # - platform: "watchOS-simulator" - # os_list: "9.4" - # device_name: "Apple Watch Series 8 (45mm)" + # we will only build them + - platform: "watchOS-simulator" + os_list: "9.4" + device_name: "Apple Watch Series 8 (45mm)" + action: "build" - platform: "visionOS-simulator" os_list: "1.0" device_name: "Apple Vision Pro" + action: "build" steps: - name: Download Workspace uses: actions/download-artifact@v4 @@ -81,7 +84,7 @@ jobs: - name: Tests (${{ matrix.platform }}) run: | chmod +x ./scripts/test.sh - ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" || ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" + ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" "${{ matrix.action }}" || ./scripts/test.sh ${{ matrix.platform }} "${{ matrix.os_list }}" "${{ matrix.device_name }}" "${{ matrix.action }}" release: if: ${{ github.ref == 'refs/heads/main' }} diff --git a/scripts/test.sh b/scripts/test.sh index 8ccb8a3a50..8abd099c7e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,6 +4,7 @@ set -ex PLATFORM="$1" OS_LIST="$2" NAME="$3" +ACTIONS=${4:-test} if [[ $PLATFORM = "iOS-simulator" ]]; then SDK="iphonesimulator" @@ -26,10 +27,9 @@ else fi if [[ $OS_LIST != "" ]]; then - for OS in $OS_LIST; - do - xcodebuild -scheme TDLibKit -sdk ${SDK} -destination "${DESTINATION},OS=${OS}" clean test + for OS in $OS_LIST; do + xcodebuild -scheme TDLibKit -sdk ${SDK} -destination "${DESTINATION},OS=${OS}" clean ${ACTIONS} done else - xcodebuild -scheme TDLibKit -sdk ${SDK} -destination "${DESTINATION}" clean test + xcodebuild -scheme TDLibKit -sdk ${SDK} -destination "${DESTINATION}" clean ${ACTIONS} fi