| # 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: R |
| |
| on: |
| push: |
| paths: |
| - '.github/workflows/r.yml' |
| - 'ci/**' |
| - 'cpp/**' |
| - 'r/**' |
| pull_request: |
| paths: |
| - '.github/workflows/r.yml' |
| - 'ci/**' |
| - 'cpp/**' |
| - 'r/**' |
| |
| jobs: |
| ubuntu: |
| name: AMD64 Ubuntu ${{ matrix.ubuntu }} R ${{ matrix.r }} |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| r: [3.6] |
| ubuntu: [18.04] |
| env: |
| R: ${{ matrix.r }} |
| UBUNTU: ${{ matrix.ubuntu }} |
| steps: |
| - name: Checkout Arrow |
| uses: actions/checkout@v1 |
| with: |
| submodules: true |
| - name: Docker Pull |
| shell: bash |
| run: | |
| docker-compose pull --ignore-pull-failures ubuntu-cpp |
| docker-compose pull --ignore-pull-failures ubuntu-r |
| - name: Docker Build |
| shell: bash |
| run: | |
| docker-compose build ubuntu-cpp |
| docker-compose build ubuntu-r |
| - name: Docker Run |
| shell: bash |
| run: docker-compose run ubuntu-r |
| - 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 ubuntu-r |
| |
| rstudio: |
| name: "rstudio/r-base:${{ matrix.r_version }}-${{ matrix.r_image }}" |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| # See https://hub.docker.com/r/rstudio/r-base |
| r_version: ["3.6"] |
| r_image: |
| - centos7 |
| env: |
| R_ORG: "rstudio" |
| R_IMAGE: "r-base" |
| R_TAG: ${{ matrix.r_version }}-${{ matrix.r_image }} |
| steps: |
| - name: Checkout Arrow |
| uses: actions/checkout@v1 |
| - name: Docker Pull |
| shell: bash |
| run: docker-compose pull --ignore-pull-failures r |
| - name: Docker Build |
| shell: bash |
| run: docker-compose build r |
| - name: Docker Run |
| shell: bash |
| run: docker-compose run r |
| - 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 r |