Skip to content

Build package

Build package #5

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Build package
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
on:
workflow_dispatch:
env:
RUST_VERSION: nightly
jobs:
release:
name: Build release
runs-on: ubuntu-20.04
container:
image: amd64/rust
env:
JAVA_VERSION: 8
steps:
- uses: actions/checkout@v4
- name: Setup Rust & Java toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{env.RUST_VERSION}}
jdk-version: 8
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
/root/.m2/repository
key: ${{ runner.os }}-rust-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-rust-maven-
- name: Build Comet
run: make release PROFILES="-Pspark-3.5"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: comet-spark-spark3.5_2.12-0.1.0-SNAPSHOT.jar
path: spark/target/comet-spark-spark3.5_2.12-0.1.0-SNAPSHOT.jar