Skip to content

Commit ca660d8

Browse files
authored
CI(trino): fix workdir (#46)
* ci(trino): fix workdir * ci(trino): clone before setup-java * ci(trino): release instead of upload
1 parent 5c22979 commit ca660d8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/trino.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ jobs:
1212
name: Trino Build
1313
runs-on: ubuntu-20.04
1414
steps:
15+
- name: Clone
16+
run: git clone --depth 1 --branch ${{ github.event.inputs.trino-version }} https://github.com/trinodb/trino.git
1517
- uses: actions/setup-java@v3
1618
with:
1719
distribution: 'zulu'
1820
java-version: 17
1921
cache: 'maven'
20-
- name: Clone
21-
run: git clone --depth 1 --branch ${{ github.event.inputs.trino-version }} https://github.com/trinodb/trino.git
2222
- name: Patch
2323
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
24+
sed -i '/verifyJvmRequirements()/d' trino/core/trino-main/src/main/java/io/trino/server/Server.java
25+
sed -i '/import static io.trino.server.TrinoSystemRequirements.verifyJvmRequirements;/d' trino/core/trino-main/src/main/java/io/trino/server/Server.java
2626
- name: Build
27+
working-directory: ./trino
2728
run: ./mvnw -pl core/trino-server clean install -DskipTests
28-
- uses: actions/upload-artifact@v3
29+
- name: Release
30+
uses: softprops/action-gh-release@v1
2931
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
32+
tag_name: trino-server-${{ github.event.inputs.trino-version }}
33+
body: Custom build of Trino Server version ${{ github.event.inputs.trino-version }} disabling file descriptor checks
34+
files: trino/core/trino-server/target/trino-server-${{ github.event.inputs.trino-version }}.tar.gz

0 commit comments

Comments
 (0)