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 4e8baf3 commit f96f80d
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ on:
- cron: '0 0 * * 1'

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -41,9 +37,29 @@ jobs:
run: |
./gradlew build
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

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

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

- name: Install NDK
run: |
sdkmanager --install "ndk;$(grep ndkVersion app/gradle.properties | cut -d= -f2)"
- name: Build
run: |
./gradlew build
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build]
needs: [build-ubuntu, build-macos]

runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f96f80d

Please sign in to comment.