-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CI * Fix Working Directory Working directory was still Robot2024 (copy-paste error) * Fix second copy-paste error
- Loading branch information
1 parent
3494e8b
commit 3e578eb
Showing
1 changed file
with
34 additions
and
0 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,34 @@ | ||
name: Build Gradle project | ||
|
||
on: push | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-gradle-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project sources | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Ensure LF | ||
working-directory: SharpShooter | ||
run: | | ||
set -o xtrace | ||
tr -d '\015' < "gradlew">"gradlew.temp" | ||
rm -f "gradlew" | ||
mv "gradlew.temp" "gradlew" | ||
chmod +x "gradlew" | ||
- name: Run build with Gradle Wrapper | ||
working-directory: SharpShooter | ||
run: ./gradlew build |