feat: update workflow to build with Gradle and verify installation
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 3m26s
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 3m26s
This commit is contained in:
@@ -3,13 +3,28 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
Build-Gradle:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: List files in the repository
|
||||
run: ls ${{ gitea.workspace }}
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21' # Adjust as needed
|
||||
|
||||
- name: Install Gradle
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
- run: |
|
||||
apt update && apt install -y gradle
|
||||
cd ${{ gitea.workspace }}/environmentex && gradle build && ls ../
|
||||
sudo apt update
|
||||
sudo apt install -y gradle
|
||||
|
||||
- name: Verify Gradle Installation
|
||||
run: gradle --version
|
||||
|
||||
#- name: Build with Gradle
|
||||
# run: ./gradlew build
|
||||
Reference in New Issue
Block a user