Skip to content

Commit 0cda4a5

Browse files
committed
Switch to macos VMs.
1 parent b826898 commit 0cda4a5

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/build.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,13 @@ env:
1616
jobs:
1717
assemble:
1818
name: Assemble
19-
runs-on: ubuntu-latest
19+
runs-on: macos-latest
2020
env:
2121
JAVA_TOOL_OPTIONS: -Xmx4g
2222

2323
steps:
2424
- uses: actions/checkout@v2
2525
- uses: gradle/wrapper-validation-action@v1
26-
# TODO remove the following once android-30 platform is pre-installed in GitHub Actions VMs
27-
- name: Install android-30 platform
28-
run: |
29-
sudo chown $USER:$USER $ANDROID_HOME -R
30-
$ANDROID_HOME/tools/bin/sdkmanager --install "platforms;android-30" > /dev/null
3126
- uses: actions/setup-java@v1
3227
with:
3328
java-version: 14
@@ -40,18 +35,13 @@ jobs:
4035
4136
checks:
4237
name: Checks (unit tests, static analysis and binary compatibility API check)
43-
runs-on: ubuntu-latest
38+
runs-on: macos-latest
4439
env:
4540
JAVA_TOOL_OPTIONS: -Xmx4g
4641

4742
steps:
4843
- uses: actions/checkout@v2
4944
- uses: gradle/wrapper-validation-action@v1
50-
# TODO remove the following once android-30 platform is pre-installed in GitHub Actions VMs
51-
- name: Install android-30 platform
52-
run: |
53-
sudo chown $USER:$USER $ANDROID_HOME -R
54-
$ANDROID_HOME/tools/bin/sdkmanager --install "platforms;android-30" > /dev/null
5545
- uses: actions/setup-java@v1
5646
with:
5747
java-version: 14
@@ -66,7 +56,7 @@ jobs:
6656
name: Deploy snapshot
6757
needs: [assemble, checks]
6858
if: github.ref == 'refs/heads/main'
69-
runs-on: ubuntu-latest
59+
runs-on: macos-latest
7060
env:
7161
JAVA_TOOL_OPTIONS: -Xmx4g
7262
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
@@ -75,11 +65,6 @@ jobs:
7565
steps:
7666
- uses: actions/checkout@v2
7767
- uses: gradle/wrapper-validation-action@v1
78-
# TODO remove the following once android-30 platform is pre-installed in GitHub Actions VMs
79-
- name: Install android-30 platform
80-
run: |
81-
sudo chown $USER:$USER $ANDROID_HOME -R
82-
$ANDROID_HOME/tools/bin/sdkmanager --install "platforms;android-30" > /dev/null
8368
- uses: actions/setup-java@v1
8469
with:
8570
java-version: 14

0 commit comments

Comments
 (0)