-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
49 lines (39 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev", "main"]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: [self-hosted, Linux, X64, ci-stack]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Isolate Gradle user home
run: echo "GRADLE_USER_HOME=${RUNNER_TEMP}/gradle-user-home" >> "$GITHUB_ENV"
- uses: actions/setup-java@v5
with:
java-version: "25"
distribution: temurin
- uses: gradle/actions/setup-gradle@v6
- name: Detect affected Gradle modules
id: affected
run: bash .github/scripts/ci-affected-tasks.sh
- name: Build affected modules
env:
TASKS: ${{ steps.affected.outputs.tasks }}
run: |
if [[ -z "$TASKS" ]]; then
echo "No Gradle compilation or tests are required."
exit 0
fi
readarray -t task_args <<<"$TASKS"
printf 'Running:\n%s\n' "$TASKS"
./gradlew "${task_args[@]}" --parallel --max-workers=32