From 62afbc87acff1b1aea2054fe38c0c0bf1c8c88c4 Mon Sep 17 00:00:00 2001 From: sstone Date: Thu, 6 Jun 2024 10:03:24 +0200 Subject: [PATCH] CI: build and test android library on ubuntu instead of macos --- .github/workflows/release.yml | 4 ++-- .github/workflows/snapshot.yml | 4 ++-- .github/workflows/test.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ba70d3..2b5d0f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,7 +88,7 @@ jobs: shell: bash run: ./gradlew iosX64Test - name: Check Android - if: matrix.os == 'macOS-latest' + if: matrix.os == 'ubuntu-latest' uses: reactivecircus/android-emulator-runner@v2 with: api-level: 27 @@ -99,7 +99,7 @@ jobs: - name: Publish Linux if: matrix.os == 'ubuntu-latest' shell: bash - run: ./gradlew publishLinuxX64PublicationToMavenLocal :jni:jvm:linux:publishJvmPublicationToMavenLocal + run: ./gradlew publishAndroidPublicationToMavenLocal publishLinuxX64PublicationToMavenLocal :jni:jvm:linux:publishJvmPublicationToMavenLocal - name: Publish Windows if: matrix.os == 'windows-latest' shell: msys2 {0} diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 39b67e6..cb250d2 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -97,7 +97,7 @@ jobs: shell: bash run: ./gradlew iosX64Test - name: Check Android - if: matrix.os == 'macOS-latest' + if: matrix.os == 'ubuntu-latest' uses: reactivecircus/android-emulator-runner@v2 with: api-level: 27 @@ -108,7 +108,7 @@ jobs: - name: Publish Linux if: matrix.os == 'ubuntu-latest' shell: bash - run: ./gradlew publishLinuxX64PublicationToMavenLocal :jni:jvm:linux:publishJvmPublicationToMavenLocal -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} + run: ./gradlew publishAndroidPublicationToMavenLocal publishLinuxX64PublicationToMavenLocal :jni:jvm:linux:publishJvmPublicationToMavenLocal -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} - name: Publish Windows if: matrix.os == 'windows-latest' shell: msys2 {0} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5869ca..5b494bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -103,7 +103,7 @@ jobs: shell: bash run: ./gradlew iosX64Test - name: Check Android - if: matrix.os == 'macOS-latest' + if: matrix.os == 'ubuntu-latest' uses: reactivecircus/android-emulator-runner@v2 with: api-level: 27