Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ortex authored May 22, 2024
1 parent 93e574d commit fda6df6
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,18 @@ on:
- cron: '0 0 * * 1'

jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV

- name: Install SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

- name: Install NDK
run: |
sdkmanager --install "ndk;$(grep ndkVersion app/gradle.properties | cut -d= -f2)"
- name: Build
run: |
./gradlew build
build-macos:
runs-on: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_arm64" >> $GITHUB_ENV
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV

- name: Install SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
Expand All @@ -59,7 +43,7 @@ jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-ubuntu, build-macos]
needs: [build]

runs-on: ubuntu-latest
steps:
Expand All @@ -69,7 +53,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
run: echo "JAVA_HOME=${{ env.JAVA_HOME_17_X64 || env.JAVA_HOME_17_ARM64 }}" >> $GITHUB_ENV

- name: Install SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
Expand Down

0 comments on commit fda6df6

Please sign in to comment.