Skip to content

Commit cf2a1db

Browse files
committed
Build missing Trino dependencies from sources
1 parent 806280e commit cf2a1db

5 files changed

Lines changed: 80 additions & 33 deletions

File tree

.github/workflows/maven.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Set up the JDK
16-
uses: actions/setup-java@v4
16+
uses: actions/setup-java@v5
1717
with:
1818
java-version: '24'
1919
distribution: 'temurin'
@@ -23,8 +23,23 @@ jobs:
2323
run: |
2424
echo "::add-matcher::.github/problem-matcher.json"
2525
echo "::remove-matcher owner=java::"
26+
27+
- name: Get Trino version
28+
id: trino_tag
29+
run: |
30+
trino_tag=$(./mvnw -B help:evaluate -Dexpression=dep.trino.version -q -DforceStdout)
31+
echo "trino_tag=$trino_tag" >> $GITHUB_OUTPUT
32+
- uses: actions/checkout@v5
33+
with:
34+
repository: trinodb/trino
35+
path: trino
36+
ref: ${{ steps.trino_tag.outputs.trino_tag }}
37+
- name: Build Trino
38+
run: cd trino && ./mvnw -B install -DskipTests -Dair.check.skip-all -Dskip.npm -pl ':trino-main,:trino-testing,:trino-memory,:trino-tpch' -am
39+
2640
- name: Build with Maven
2741
run: ./mvnw -B package
42+
2843
- name: Annotate run
2944
uses: trinodb/github-actions/action-surefire-report@b63800bedfbc7ab1ff2e5fe7eaecf5ab82ce6a70
3045
if: always()

.github/workflows/release.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,44 @@ jobs:
1212
contents: write
1313
packages: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
18-
19-
- name: Set up the JDK
20-
uses: actions/setup-java@v4
18+
- uses: actions/setup-java@v5
2119
with:
2220
java-version: '24'
2321
distribution: 'temurin'
2422
cache: 'maven'
25-
2623
- name: Configure Problem Matchers
2724
run: |
2825
echo "::add-matcher::.github/problem-matcher.json"
2926
echo "::remove-matcher owner=java::"
30-
3127
- name: Configure Git user
3228
run: |
3329
git config user.name "${{ github.event.head_commit.committer.name }}"
3430
git config user.email "${{ github.event.head_commit.committer.email }}"
3531
3632
- name: Set up Docker Buildx
3733
uses: docker/setup-buildx-action@v3
38-
3934
- name: Login to Docker Hub
4035
uses: docker/login-action@v3
4136
with:
4237
username: ${{ secrets.DOCKERHUB_USERNAME }}
4338
password: ${{ secrets.DOCKERHUB_TOKEN }}
4439

40+
- name: Get Trino version
41+
id: trino_tag
42+
run: |
43+
trino_tag=$(./mvnw -B help:evaluate -Dexpression=dep.trino.version -q -DforceStdout)
44+
echo "trino_tag=$trino_tag" >> $GITHUB_OUTPUT
45+
- uses: actions/checkout@v5
46+
with:
47+
repository: trinodb/trino
48+
path: trino
49+
ref: ${{ steps.trino_tag.outputs.trino_tag }}
50+
- name: Build Trino
51+
run: cd trino && ./mvnw -B install -DskipTests -Dair.check.skip-all -Dskip.npm -pl ':trino-main,:trino-testing,:trino-memory,:trino-tpch' -am
52+
4553
- name: Prepare release
4654
run: ./mvnw -B release:prepare
4755

.mvn/maven.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--strict-checksums
2+
-b
3+
smart
4+
-T2C
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
1+
wrapperVersion=3.3.4
182
distributionType=only-script
193
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip

mvnw

Lines changed: 43 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)