Change ndk setup
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -16,8 +16,11 @@ on:
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CHANNEL: ${{ github.ref_type == 'tag' && endsWith(github.ref_name, 'dev') && 'dev' || github.ref_type != 'tag' && 'dev' || 'prod' }}
|
||||
NDK_VERSION: '26.1.10909125'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
permissions: write-all
|
||||
@@ -75,6 +78,15 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
java-version: 11
|
||||
|
||||
- name: Setup NDK
|
||||
if: startsWith(matrix.platform,'android')
|
||||
uses: nttld/setup-ndk@v1
|
||||
id: setup-ndk
|
||||
with:
|
||||
ndk-version: ${{ env.NDK_VERSION }}
|
||||
add-to-path: true
|
||||
link-to-sdk: true
|
||||
|
||||
- name: Setup Flutter Distributor
|
||||
if: ${{ !startsWith(matrix.platform,'android') }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user