From 8d0311c988bf4eabcb4c13b341a55044e7e75f2a Mon Sep 17 00:00:00 2001 From: "orbit-brancher[bot]" <169901335+orbit-brancher[bot]@users.noreply.github.com> Date: Sun, 19 May 2024 21:00:26 +0200 Subject: [PATCH] [AUTO] Update readme and add orbit config (#8) * Update readme and add orbit config * Add PR Action to test automated PR's * Add forgotten setupWorkspace task to action * Make sure all branches are available in the CI * Urgh. Make sure gradlew is executable * [skip ci] Use self hosted runner --------- Co-authored-by: root Co-authored-by: hypherionmc --- .github/workflows/test-orbit-pr.yml | 50 +++++++++++++++++++++++++++++ commit.sha | 2 +- gradlew | 0 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-orbit-pr.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/test-orbit-pr.yml b/.github/workflows/test-orbit-pr.yml new file mode 100644 index 0000000..35712a5 --- /dev/null +++ b/.github/workflows/test-orbit-pr.yml @@ -0,0 +1,50 @@ +name: Test Orbit Auto PR + +on: + pull_request: + branches: + - porting + +jobs: + run-gradle-taks: + runs-on: self-hosted + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Fetch all branches and tags + run: git fetch --all + + - name: Set Up JDK + uses: actions/setup-java@v3 + with: + distribution: zulu + java-version: 17 + + - name: Cache Gradle dependencies + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Setup Workspace + run: chmod +x ./gradle && ./gradlew setupWorkspace + + - name: Test LTS Branches + run: | + for dir in dev/*/ ; do + if [ -d "$dir" ]; then + echo "Running Gradle build for $dir" + cd "$dir" + chmod +x ./gradlew + ./gradlew build + cd - + fi + done \ No newline at end of file diff --git a/commit.sha b/commit.sha index 4d1bc95..fcd447c 100644 --- a/commit.sha +++ b/commit.sha @@ -1 +1 @@ -d9fcf547281e42215550a62152f436953b550e68 \ No newline at end of file +55c6f60197e1b916ecb6b1e84747838c9e4c1c67 \ No newline at end of file diff --git a/gradlew b/gradlew old mode 100644 new mode 100755