Skip to content

Commit ac4e641

Browse files
authored
ci: switch to ubuntu-latest (#1971)
1 parent bfd7650 commit ac4e641

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

.github/workflows/npm_release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ env:
1212
NDK_VERSION: r27d
1313
ANDROID_API: 33
1414
ANDROID_ABI: x86_64
15-
NDK_ARCH: darwin
15+
NDK_ARCH: linux
1616

1717
permissions:
1818
contents: read
1919

2020
jobs:
2121
build:
2222
name: Build
23-
runs-on: macos-15
23+
runs-on: ubuntu-latest
2424
outputs:
2525
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2626
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
@@ -45,9 +45,6 @@ jobs:
4545
cache: gradle
4646
- name: Setup Android SDK
4747
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
48-
- name: Homebrew dependencies
49-
run: |
50-
brew install wget
5148
- name: Setup NDK
5249
run: |
5350
echo "y" | sdkmanager "cmake;3.6.4111459"
@@ -94,7 +91,7 @@ jobs:
9491

9592
test:
9693
name: Test
97-
runs-on: macos-15-intel
94+
runs-on: ubuntu-latest
9895
steps:
9996
- name: Harden the runner (Audit all outbound calls)
10097
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
@@ -115,9 +112,6 @@ jobs:
115112
cache: gradle
116113
- name: Setup Android SDK
117114
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
118-
- name: Homebrew dependencies
119-
run: |
120-
brew install wget
121115
- name: Setup NDK
122116
run: |
123117
echo "y" | sdkmanager "cmake;3.6.4111459"
@@ -135,6 +129,11 @@ jobs:
135129
npm install --prefix ./test-app/tools
136130
- name: SBG tests
137131
run: ./gradlew runSbgTests --stacktrace
132+
- name: Enable KVM
133+
run: |
134+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
135+
sudo udevadm control --reload-rules
136+
sudo udevadm trigger --name-match=kvm
138137
- name: Run unit tests
139138
uses: ReactiveCircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a # v2.37.0
140139
with:

.github/workflows/pull_request.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ env:
88
NDK_VERSION: r27d
99
ANDROID_API: 33
1010
ANDROID_ABI: x86_64
11-
NDK_ARCH: darwin
11+
NDK_ARCH: linux
1212

1313
permissions:
1414
contents: read
1515

1616
jobs:
1717
build:
1818
name: Build
19-
runs-on: macos-15
19+
runs-on: ubuntu-latest
2020
outputs:
2121
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2222
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
@@ -36,9 +36,6 @@ jobs:
3636
cache: gradle
3737
- name: Setup Android SDK
3838
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
39-
- name: Homebrew dependencies
40-
run: |
41-
brew install wget
4239
- name: Setup NDK
4340
run: |
4441
echo "y" | sdkmanager "cmake;3.6.4111459"
@@ -84,7 +81,7 @@ jobs:
8481
path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
8582
test:
8683
name: Test
87-
runs-on: macos-15-intel
84+
runs-on: ubuntu-latest
8885
steps:
8986
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
9087
with:
@@ -100,9 +97,6 @@ jobs:
10097
cache: gradle
10198
- name: Setup Android SDK
10299
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
103-
- name: Homebrew dependencies
104-
run: |
105-
brew install wget
106100
- name: Setup NDK
107101
run: |
108102
echo "y" | sdkmanager "cmake;3.6.4111459"
@@ -120,6 +114,11 @@ jobs:
120114
npm install --prefix ./test-app/tools
121115
- name: SBG tests
122116
run: ./gradlew runSbgTests --stacktrace
117+
- name: Enable KVM
118+
run: |
119+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
120+
sudo udevadm control --reload-rules
121+
sudo udevadm trigger --name-match=kvm
123122
- name: Run unit tests
124123
uses: ReactiveCircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a # v2.37.0
125124
with:

0 commit comments

Comments
 (0)