-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 1013 Bytes
/
pcgcli.yml
File metadata and controls
38 lines (36 loc) · 1013 Bytes
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
name: Partitioned Consumer Groups CLI Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'pcgroups-cli/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pcgroups
steps:
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Check out code
uses: actions/checkout@v4
- name: Build with Gradle
run: chmod +x gradlew && ./gradlew :pcgroups-cli:clean :pcgroups-cli:dist
- name: Validate artifacts were created
run: |
CLI_BUILD="../pcgroups-cli/build"
for f in cg.jar cg.zip cg.tar; do
if [ -f "$CLI_BUILD/$f" ]; then
echo "Validation successful: $CLI_BUILD/$f was created."
else
echo "Validation failed: $CLI_BUILD/$f was not found."
exit 1
fi
done