Skip to content

Commit 5c22979

Browse files
authored
CI(trino): first attempt for build (#44)
* ci(trino): first attempt for build * ci(trino): avoid checkstyle error with line delete
1 parent d0b0e8f commit 5c22979

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/trino.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Trino
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
trino-version:
6+
required: true
7+
description: The Trino version (e.g. 378), should be compatible with the patch
8+
9+
10+
jobs:
11+
build:
12+
name: Trino Build
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- uses: actions/setup-java@v3
16+
with:
17+
distribution: 'zulu'
18+
java-version: 17
19+
cache: 'maven'
20+
- name: Clone
21+
run: git clone --depth 1 --branch ${{ github.event.inputs.trino-version }} https://github.com/trinodb/trino.git
22+
- name: Patch
23+
run: |
24+
sed -i '/verifyJvmRequirements()/d' core/trino-main/src/main/java/io/trino/server/Server.java
25+
sed -i '/import static io.trino.server.TrinoSystemRequirements.verifyJvmRequirements;/d' core/trino-main/src/main/java/io/trino/server/Server.java
26+
- name: Build
27+
run: ./mvnw -pl core/trino-server clean install -DskipTests
28+
- uses: actions/upload-artifact@v3
29+
with:
30+
name: trino-server-${{ github.event.inputs.trino-version }}
31+
path: core/trino-server/target/trino-server-${{ github.event.inputs.trino-version }}.tar.gz

0 commit comments

Comments
 (0)