forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github CI step and action for building with Gradle
The Gradle projects is configured to use JDK 18 toolchain so a new env variable is added for it. RELNOTES=N/A PiperOrigin-RevId: 710748526
- Loading branch information
1 parent
c43783a
commit 1620e92
Showing
7 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Gradle Build' | ||
description: 'Builds artifacts using Gradle.' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 'Install Java ${{ env.USE_JAVA_VERSION_FOR_GRADLE }}' | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: '${{ env.USE_JAVA_DISTRIBUTION }}' | ||
java-version: '${{ env.USE_JAVA_VERSION_FOR_GRADLE }}' | ||
- name: 'Check out repository' | ||
uses: actions/checkout@v4 | ||
- name: 'Cache Gradle files' | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: 'Build Gradle version' | ||
run: ./util/build-gradle.sh | ||
shell: bash |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
./gradlew build --no-daemon --stacktrace |