Skip to content

Commit

Permalink
Try to use newer java
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed May 23, 2024
1 parent a41b931 commit 39b63de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/pkl-workflows/helpers/Steps.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ const function setupJDK(): gha.Step = new {
uses = Actions.setupJDK
with {
["distribution"] = "microsoft"
["java-version"] = 11
["java-version"] = 21
}
}

const function setupAndroid(): Listing<gha.Step> = new Listing<gha.Step> {
setupJDK()
new {
name = "Setup Android"
uses = Actions.setupAndroid
Expand All @@ -110,7 +111,6 @@ const function setupAndroid(): Listing<gha.Step> = new Listing<gha.Step> {
name = "Install SDK platform 21"
run = "sdkmanager --install \"platforms;android-21\""
}
setupJDK()
}

const function configureAWSCredentials(accessKey: String, secretKey: String, region: String): gha.Step = new {
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ jobs:
run: |-
echo "::add-matcher::.github/problem-matchers/csc.json"
echo "::add-matcher::.github/problem-matchers/msvc.json"
- name: Setup Android
uses: android-actions/setup-android@e1f5280adf78cf863c0fa43ffabc64a9cd08153f
- name: Install SDK platform 21
run: sdkmanager --install "platforms;android-21"
- name: Setup JDK
uses: actions/setup-java@2e74cbce18569d23ca8b812590dbb83f13ac7c5a
with:
distribution: microsoft
java-version: 11
java-version: 21
- name: Setup Android
uses: android-actions/setup-android@e1f5280adf78cf863c0fa43ffabc64a9cd08153f
- name: Install SDK platform 21
run: sdkmanager --install "platforms;android-21"
- uses: actions/setup-dotnet@5d1464d5da459f3d7085106d52e499f4dc5d0f59
with:
dotnet-version: 8.0.x
Expand Down Expand Up @@ -911,7 +911,7 @@ jobs:
uses: actions/setup-java@2e74cbce18569d23ca8b812590dbb83f13ac7c5a
with:
distribution: microsoft
java-version: 11
java-version: 21
- name: Checkout Code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -972,7 +972,7 @@ jobs:
uses: actions/setup-java@2e74cbce18569d23ca8b812590dbb83f13ac7c5a
with:
distribution: microsoft
java-version: 11
java-version: 21
- name: Checkout Code
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 39b63de

Please sign in to comment.