forked from apache/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7397eae
commit cc34ee2
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Build Hive | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
on: | ||
# schedule: | ||
# - cron: '*/15 * * * *' | ||
workflow_dispatch: | ||
# push: | ||
# branches: [ "main" ] | ||
# # Publish semver tags as releases. | ||
# tags: [ 'v*.*.*' ] | ||
# pull_request: | ||
# branches: [ "main" ] | ||
|
||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
# github.repository as <account>/<repo> | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
# This is used to complete the identity challenge | ||
# with sigstore/fulcio when running outside of PRs. | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout Hive | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: UrbanOS-Public/urbanos-hive | ||
path: hive-3.1 # Store in $GITHUB_WORKSPACE/other-repo | ||
ref: branch-3.1 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
distribution: temurin | ||
|
||
- name: Install Dependencies | ||
run: | | ||
# Maven | ||
sudo apt-get -y install maven | ||
# Native libraries | ||
sudo apt-get -y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev libsasl2-dev | ||
# Protocol Buffers 3.7.1 (required to build native code) | ||
curl -L -s -S https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz -o protobuf-3.7.1.tar.gz | ||
mkdir protobuf-3.7-src | ||
tar xzf protobuf-3.7.1.tar.gz --strip-components 1 -C protobuf-3.7-src && cd protobuf-3.7-src | ||
./configure | ||
make -j$(nproc) | ||
sudo make install | ||
cd .. | ||
- name: Build Hive | ||
run: | | ||
cd hive-3.1/standalone-metastore | ||
mvn package -Pdist -DskipTests -Dtar -Dmaven.javadoc.skip=true | ||
echo "$(ls hive-3.1/standalone-metastore/target/apache-hive-metastore-3.1.3-bin)" | ||
- name: Upload Hive Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: hive-3.1 | ||
path: hive-3.1/standalone-metastore/target/apache-hive-metastore-3.1.3-bin/apache-hive-metastore-3.1.3-bin | ||
- name: Echo | ||
run: | | ||
echo "$(pwd)" | ||