Skip to content

Commit

Permalink
Fix gradle/android/java version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas committed Jul 23, 2024
1 parent 2be0f7e commit 38fe720
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,25 @@ jobs:
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('./eternajs/package-lock.json') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Setup cordova platform
run: npx cordova platform add ${{ matrix.target }}
env:
PARALLEL_BUILD: true
- name: Build
if: ${{ matrix.target == 'android' }}
run: npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device
env:
PARALLEL_BUILD: true
JAVA_HOME: env.JAVA_HOME_17_X64
- name: Build
if: ${{ matrix.target == 'ios' }}
run: npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device
env:
PARALLEL_BUILD: true

0 comments on commit 38fe720

Please sign in to comment.