Skip to content

Commit

Permalink
Fix the java and bazel version when publishing the latest snapshots.
Browse files Browse the repository at this point in the history
Publishing the latest snapshots is currently failing since ubuntu-latest was updated to Java 11, which doesn't like empty root packages when using javadoc_library:
https://github.com/google/dagger/runs/1982251838?check_suite_focus=true

RELNOTES=N/A
PiperOrigin-RevId: 359639855
  • Loading branch information
bcorso authored and Dagger Team committed Feb 26, 2021
1 parent 78438d5 commit addb1fc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
- master
pull_request:

env:
# Our Bazel builds currently rely on JDK 8.
USE_JAVA_VERSION: '8'
# Our Bazel builds currently rely on 3.7.1. The version is set via
# baselisk by USE_BAZEL_VERSION: https://github.com/bazelbuild/bazelisk.
USE_BAZEL_VERSION: '3.7.1'

jobs:
validate-latest-dagger-version:
name: 'Validate Dagger version'
Expand All @@ -22,12 +29,6 @@ jobs:
name: 'Bazel tests'
needs: validate-latest-dagger-version
runs-on: ubuntu-latest
env:
# Our Bazel builds currently rely on JDK 8.
USE_JAVA_VERSION: '8'
# Our Bazel builds currently rely on 3.7.1. The version is set via
# baselisk by USE_BAZEL_VERSION: https://github.com/bazelbuild/bazelisk.
USE_BAZEL_VERSION: '3.7.1'
steps:
- name: 'Install Java ${{ env.USE_JAVA_VERSION }}'
uses: actions/setup-java@v1
Expand Down Expand Up @@ -160,6 +161,10 @@ jobs:
if: github.event_name == 'push' && github.repository == 'google/dagger' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: 'Install Java ${{ env.USE_JAVA_VERSION }}'
uses: actions/setup-java@v1
with:
java-version: '${{ env.USE_JAVA_VERSION }}'
- name: 'Check out repository'
uses: actions/checkout@v2
- name: 'Cache local Maven repository'
Expand Down

0 comments on commit addb1fc

Please sign in to comment.