diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml index 9e137725..b373c15e 100644 --- a/.github/workflows/build_mac.yml +++ b/.github/workflows/build_mac.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: macos-13 + runs-on: macos-latest steps: - name: Checkout the repo uses: actions/checkout@v2 @@ -33,7 +33,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Build - run: ./gradlew ktlintCheck build --no-daemon --stacktrace --build-cache + run: ./gradlew ktlintCheck build --no-daemon --stacktrace --build-cache -PskipX64Tests env: S3_BUILD_CACHE_AWS_REGION: ${{ secrets.S3_BUILD_CACHE_AWS_REGION }} S3_BUILD_CACHE_BUCKET_NAME: ${{ secrets.S3_BUILD_CACHE_BUCKET_NAME }} diff --git a/build.gradle.kts b/build.gradle.kts index 51f34dc2..5f3ef1ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,6 +52,15 @@ allprojects { google() } tasks.getByName("dokkaHtml").dependsOn(":kermit:transformIosMainCInteropDependenciesMetadataForIde") + + if (rootProject.hasProperty("skipX64Tests")) { + afterEvaluate { + tasks.matching { it.name.endsWith("X64Test") }.configureEach { + enabled = false + onlyIf { false } + } + } + } } subprojects { diff --git a/ci-test-samples.sh b/ci-test-samples.sh index 32bcc379..70a75eca 100755 --- a/ci-test-samples.sh +++ b/ci-test-samples.sh @@ -4,6 +4,6 @@ set -e for i in `ls samples`; do echo "---- $i ----" cd samples/$i -./gradlew ciTest --no-daemon --stacktrace --build-cache +./gradlew ciTest --no-daemon --stacktrace --build-cache -PskipX64Tests cd ../.. done