blob: dc0b532abf7eb0d985424977a525f6860144d54a [file] [log] [blame]
# 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:
paths:
- '.github/workflows/rust.yml'
- 'ci/**'
- 'rust/**'
pull_request:
paths:
- '.github/workflows/rust.yml'
- 'ci/**'
- 'rust/**'
jobs:
debian:
name: AMD64 Debian 10 Rust ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [nightly-2019-11-14]
env:
RUST: ${{ matrix.rust }}
steps:
- name: Checkout Arrow
uses: actions/checkout@v1
with:
submodules: true
- name: Docker Pull
run: docker-compose pull --ignore-pull-failures debian-rust
- name: Docker Build
run: docker-compose build debian-rust
- name: Docker Run
run: docker-compose run debian-rust
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
shell: bash
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push debian-rust
windows:
name: AMD64 Windows 2019 Rust ${{ matrix.rust }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
rust: [nightly-2019-11-14]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Install Flatbuffers
shell: bash
run: choco install flatc
- name: Checkout Arrow
uses: actions/checkout@v1
with:
submodules: true
- name: Build
shell: bash
run: ci/scripts/rust_build.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: ci/scripts/rust_test.sh $(pwd) $(pwd)/build
macos:
name: AMD64 MacOS 10.15 Rust ${{ matrix.rust }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
rust: [nightly-2019-11-14]
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Install Flatbuffers
shell: bash
run: brew install flatbuffers
- name: Checkout Arrow
uses: actions/checkout@v1
with:
submodules: true
- name: Build
shell: bash
run: ci/scripts/rust_build.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: ci/scripts/rust_test.sh $(pwd) $(pwd)/build