diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release.yml index b27ebefe9..761ac1ff8 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release.yml @@ -12,7 +12,7 @@ env: NDK_VERSION: r27d ANDROID_API: 33 ANDROID_ABI: x86_64 - NDK_ARCH: darwin + NDK_ARCH: linux permissions: contents: read @@ -20,7 +20,7 @@ permissions: jobs: build: name: Build - runs-on: macos-15 + runs-on: ubuntu-latest outputs: npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }} npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }} @@ -45,9 +45,6 @@ jobs: cache: gradle - name: Setup Android SDK uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0 - - name: Homebrew dependencies - run: | - brew install wget - name: Setup NDK run: | echo "y" | sdkmanager "cmake;3.6.4111459" @@ -94,7 +91,7 @@ jobs: test: name: Test - runs-on: macos-15-intel + runs-on: ubuntu-latest steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 @@ -115,9 +112,6 @@ jobs: cache: gradle - name: Setup Android SDK uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0 - - name: Homebrew dependencies - run: | - brew install wget - name: Setup NDK run: | echo "y" | sdkmanager "cmake;3.6.4111459" @@ -135,6 +129,11 @@ jobs: npm install --prefix ./test-app/tools - name: SBG tests run: ./gradlew runSbgTests --stacktrace + - name: Enable KVM + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm - name: Run unit tests uses: ReactiveCircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a # v2.37.0 with: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 775f53090..142204274 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,7 +8,7 @@ env: NDK_VERSION: r27d ANDROID_API: 33 ANDROID_ABI: x86_64 - NDK_ARCH: darwin + NDK_ARCH: linux permissions: contents: read @@ -16,7 +16,7 @@ permissions: jobs: build: name: Build - runs-on: macos-15 + runs-on: ubuntu-latest outputs: npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }} npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }} @@ -36,9 +36,6 @@ jobs: cache: gradle - name: Setup Android SDK uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0 - - name: Homebrew dependencies - run: | - brew install wget - name: Setup NDK run: | echo "y" | sdkmanager "cmake;3.6.4111459" @@ -84,7 +81,7 @@ jobs: path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/* test: name: Test - runs-on: macos-15-intel + runs-on: ubuntu-latest steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: @@ -100,9 +97,6 @@ jobs: cache: gradle - name: Setup Android SDK uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0 - - name: Homebrew dependencies - run: | - brew install wget - name: Setup NDK run: | echo "y" | sdkmanager "cmake;3.6.4111459" @@ -120,6 +114,11 @@ jobs: npm install --prefix ./test-app/tools - name: SBG tests run: ./gradlew runSbgTests --stacktrace + - name: Enable KVM + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm - name: Run unit tests uses: ReactiveCircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a # v2.37.0 with: