Skip to content

Commit

Permalink
Switch to macos VMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Jun 21, 2020
1 parent b826898 commit 0cda4a5
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,13 @@ env:
jobs:
assemble:
name: Assemble
runs-on: ubuntu-latest
runs-on: macos-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g

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

steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
# TODO remove the following once android-30 platform is pre-installed in GitHub Actions VMs
- name: Install android-30 platform
run: |
sudo chown $USER:$USER $ANDROID_HOME -R
$ANDROID_HOME/tools/bin/sdkmanager --install "platforms;android-30" > /dev/null
- uses: actions/setup-java@v1
with:
java-version: 14
Expand All @@ -66,7 +56,7 @@ jobs:
name: Deploy snapshot
needs: [assemble, checks]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
runs-on: macos-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
Expand All @@ -75,11 +65,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
# TODO remove the following once android-30 platform is pre-installed in GitHub Actions VMs
- name: Install android-30 platform
run: |
sudo chown $USER:$USER $ANDROID_HOME -R
$ANDROID_HOME/tools/bin/sdkmanager --install "platforms;android-30" > /dev/null
- uses: actions/setup-java@v1
with:
java-version: 14
Expand Down

0 comments on commit 0cda4a5

Please sign in to comment.