Skip to content

Commit

Permalink
ci: skim style check in windows
Browse files Browse the repository at this point in the history
make command failed in windows runner
./gradlew spotlessCheck
'.' is not recognized as an internal or external command,
operable program or batch file.
make: *** [Makefile:17: spotlessCheck] Error 1

Jdk 21 failed on windows runner
> No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
  • Loading branch information
Bambooin committed Dec 14, 2023
1 parent 5df49c6 commit af9525b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/commit-ci.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
os:
- ubuntu-22.04
- macos-13
# - windows-2022
- windows-2022
steps:
- name: Fetch source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,15 +51,15 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 21
java-version: 17
# will restore cache of dependencies and wrappers
cache: 'gradle'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Check code style
shell: bash
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
make style-lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-ci.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
os:
- ubuntu-22.04
- macos-13
# - windows-2022
- windows-2022
steps:
- name: Fetch source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -58,15 +58,15 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 21
java-version: 17
# will restore cache of dependencies and wrappers
cache: 'gradle'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Check code style
shell: bash
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
make style-lint
Expand Down

0 comments on commit af9525b

Please sign in to comment.