Skip to content

[#1206][part-2] feat(rust): introduce rust based shuffle-server for u… #6

[#1206][part-2] feat(rust): introduce rust based shuffle-server for u…

[#1206][part-2] feat(rust): introduce rust based shuffle-server for u… #6

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: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
features:
- ""
- "memory-prof"
runs-on: ubuntu-latest
steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@3.20.3
- uses: actions/checkout@v3
- name: Sccache Setup
uses: Xuanwo/sccache-action@c94e27bef21ab3fb4a5152c8a878c53262b4abb0
with:
version: "v0.4.0-pre.6"
- name: Build
run: cargo build --features hdfs --verbose
if: ${{ matrix.features == '' }}
- name: Build with memory-prof
run: cargo build --verbose --features memory-prof
if: ${{ matrix.features == 'memory-prof' }}
- name: Code style check
run: cargo fmt --check
if: ${{ matrix.features == '' }}
- name: Run tests
run: cargo test --verbose
if: ${{ matrix.features == '' }}
- name: Run tests with memory-prof
run: cargo test --verbose --features memory-prof
if: ${{ matrix.features == 'memory-prof' }}