|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: Docs |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + pull_request: |
| 23 | + paths: |
| 24 | + - '.github/workflows/docs.yml' |
| 25 | + - 'ci/docker/linux-apt-docs.dockerfile' |
| 26 | + - 'ci/docker/linux-apt-python-3.dockerfile' |
| 27 | + - 'ci/docker/ubuntu-20.04-cpp.dockerfile' |
| 28 | + - 'ci/scripts/c_glib_build.sh' |
| 29 | + - 'ci/scripts/cpp_build.sh' |
| 30 | + - 'ci/scripts/docs_build.sh' |
| 31 | + - 'ci/scripts/java_build.sh' |
| 32 | + - 'ci/scripts/js_build.sh' |
| 33 | + - 'ci/scripts/python_build.sh' |
| 34 | + - 'ci/scripts/r_build.sh' |
| 35 | + |
| 36 | +env: |
| 37 | + ARROW_ENABLE_TIMING_TESTS: OFF |
| 38 | + DOCKER_VOLUME_PREFIX: ".docker/" |
| 39 | + ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }} |
| 40 | + ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} |
| 41 | + |
| 42 | +jobs: |
| 43 | + |
| 44 | + docker: |
| 45 | + name: AMD64 Ubuntu 20.04 Complete Documentation |
| 46 | + runs-on: ubuntu-latest |
| 47 | + if: ${{ !contains(github.event.pull_request.title, 'WIP') }} |
| 48 | + timeout-minutes: 150 |
| 49 | + env: |
| 50 | + UBUNTU: "20.04" |
| 51 | + steps: |
| 52 | + - name: Checkout Arrow |
| 53 | + uses: actions/checkout@v2 |
| 54 | + with: |
| 55 | + fetch-depth: 0 |
| 56 | + - name: Fetch Submodules and Tags |
| 57 | + run: ci/scripts/util_checkout.sh |
| 58 | + - name: Free Up Disk Space |
| 59 | + run: ci/scripts/util_cleanup.sh |
| 60 | + - name: Cache Docker Volumes |
| 61 | + uses: actions/cache@v2 |
| 62 | + with: |
| 63 | + path: .docker |
| 64 | + key: ubuntu-docs-${{ hashFiles('cpp/**') }} |
| 65 | + restore-keys: ubuntu-docs- |
| 66 | + - name: Setup Python |
| 67 | + uses: actions/setup-python@v2 |
| 68 | + with: |
| 69 | + python-version: 3.8 |
| 70 | + - name: Setup Archery |
| 71 | + run: pip install -e dev/archery[docker] |
| 72 | + - name: Execute Docker Build |
| 73 | + run: archery docker run ubuntu-docs |
| 74 | + - name: Docker Push |
| 75 | + if: success() && github.event_name == 'push' && github.repository == 'apache/arrow' |
| 76 | + continue-on-error: true |
| 77 | + run: archery docker push ubuntu-docs |
0 commit comments