-
Notifications
You must be signed in to change notification settings - Fork 108
42 lines (36 loc) · 1.3 KB
/
build-java.yml
File metadata and controls
42 lines (36 loc) · 1.3 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
name: Build Java Sources
on:
workflow_call:
jobs:
build-jar:
name: Build Compiler
runs-on: [self-hosted, skylake40]
container:
image: ghcr.io/feldera/feldera-dev:sha-80e0a01ee5dc094fd8693d29338d2836852dff1d
options: --user=ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ runner.os }}-
- name: Build JAR
run: bash build.sh
working-directory: ./sql-to-dbsp-compiler
- name: Copy JAR to artifacts directory
run: |
mkdir -p build-artifacts
cp ./sql-to-dbsp-compiler/SQL-compiler/target/sql2dbsp.jar build-artifacts/
cp ./sql-to-dbsp-compiler/SQL-compiler/target/sql2dbsp-jar-with-dependencies.jar build-artifacts/
cp ./sql-to-dbsp-compiler/slt/target/slt-jar-with-dependencies.jar build-artifacts/
cp ./sql-to-dbsp-compiler/slt/target/slt.jar build-artifacts/
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: feldera-sql-compiler
path: build-artifacts
retention-days: 7