From 4b2cedeeeb5c45901d7669534e0b94c8e0b6b7ce Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:49:16 +1100 Subject: [PATCH] use Java 17 for various Android-related jobs --- .github/workflows/format.yml | 4 ++++ .github/workflows/validate.yml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index aa29fb2..0c2aeea 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,6 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' - uses: axel-op/googlejavaformat-action@v3 with: args: '--skip-sorting-imports --replace' diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 86e8acf..d149357 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -38,6 +38,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' - uses: subosito/flutter-action@v2 with: channel: stable @@ -52,6 +56,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' - uses: subosito/flutter-action@v2 with: channel: stable