fix Protoc build #488
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup ASDF itself | |
| uses: asdf-vm/actions/setup@v3 | |
| - name: Cache ASDF | |
| uses: actions/cache@v4 | |
| id: asdf-cache | |
| with: | |
| # https://github.com/asdf-vm/asdf/blob/master/.gitignore | |
| path: | | |
| ~/.asdf/installs | |
| ~/.asdf/plugins | |
| ~/.asdf/shims | |
| key: ${{ runner.os }}-asdf-tools-${{ hashFiles('.tool-versions') }} | |
| restore-keys: ${{ runner.os }}-asdf-tools- | |
| - name: Install ASDF plugins | |
| uses: asdf-vm/actions/install@v3 | |
| if: ${{ steps.asdf-cache.outputs.cache-hit != 'true' }} | |
| - name: Reshim installed ASDF tools | |
| shell: bash | |
| run: asdf reshim | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Run the Maven verify phase | |
| env: | |
| PROTO_GENERATION: true | |
| REQUIRE_PROTO_UP_TO_DATE: true | |
| run: | | |
| echo "Java version: $(java -version)" | |
| ./mvnw clean install | |
| ./mvnw javadoc:javadoc -P javadoc # just to check if javadoc is generated |