|
| 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 | +# NOTE: must set "Crossbow" as name to have the badge links working in the |
| 19 | +# github comment reports! |
| 20 | +name: Crossbow |
| 21 | +on: |
| 22 | + push: |
| 23 | + branches: |
| 24 | + - "*-github-*" |
| 25 | + |
| 26 | +env: |
| 27 | + ARCHERY_DEBUG: 1 |
| 28 | + |
| 29 | + |
| 30 | +jobs: |
| 31 | + test: |
| 32 | + name: Build Docs |
| 33 | + runs-on: ubuntu-latest |
| 34 | + env: |
| 35 | + JDK: "17" |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout Arrow |
| 39 | + uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + fetch-depth: 1 |
| 42 | + path: arrow |
| 43 | + repository: apache/arrow |
| 44 | + ref: 976d547fba9b4bff4178e515ca8cdcb8a5db4d46 |
| 45 | + submodules: recursive |
| 46 | + |
| 47 | + - name: Free up disk space |
| 48 | + if: runner.os == 'Linux' && runner.arch == 'X64' |
| 49 | + shell: bash |
| 50 | + run: | |
| 51 | + arrow/ci/scripts/util_free_space.sh |
| 52 | +
|
| 53 | + - name: Set up Python |
| 54 | + uses: actions/setup-python@v4 |
| 55 | + with: |
| 56 | + cache: 'pip' |
| 57 | + python-version: 3.12 |
| 58 | + - name: Install Archery |
| 59 | + shell: bash |
| 60 | + run: pip install -e arrow/dev/archery[all] |
| 61 | + |
| 62 | + |
| 63 | + - name: Execute Docker Build |
| 64 | + shell: bash |
| 65 | + env: |
| 66 | + ARROW_JAVA_SKIP_GIT_PLUGIN: true |
| 67 | + run: | |
| 68 | + mkdir -p build |
| 69 | + archery docker run \ |
| 70 | + -e SETUPTOOLS_SCM_PRETEND_VERSION="24.0.0.dev271" \ |
| 71 | + -v $PWD/build/:/build/ \ |
| 72 | + \ |
| 73 | + debian-docs \ |
| 74 | + |
| 75 | + - name: Checkout Crossbow |
| 76 | + uses: actions/checkout@v4 |
| 77 | + with: |
| 78 | + ref: main |
| 79 | + path: crossbow |
| 80 | + fetch-depth: 1 |
| 81 | + - name: Prepare Docs artifacts |
| 82 | + run: | |
| 83 | + cd build |
| 84 | + sudo chown -R ${USER}: . |
| 85 | + tar cvzf docs.tar.gz docs |
| 86 | + - name: Set up Python |
| 87 | + uses: actions/setup-python@v4 |
| 88 | + with: |
| 89 | + python-version: 3.12 |
| 90 | + - name: Checkout Crossbow |
| 91 | + uses: actions/checkout@v4 |
| 92 | + with: |
| 93 | + path: crossbow |
| 94 | + ref: nightly-tests-2026-04-02-0 |
| 95 | + - name: Setup Crossbow |
| 96 | + shell: bash |
| 97 | + run: | |
| 98 | + python3 -m pip install -e arrow/dev/archery[crossbow] |
| 99 | + echo "$HOME/.local/bin" >> $GITHUB_PATH |
| 100 | + - name: Upload artifacts |
| 101 | + shell: bash |
| 102 | + run: | |
| 103 | + archery crossbow \ |
| 104 | + --queue-path $(pwd)/crossbow \ |
| 105 | + --queue-remote https://github.com/ursacomputing/crossbow \ |
| 106 | + upload-artifacts \ |
| 107 | + --sha nightly-tests-2026-04-02-0-github-test-debian-13-docs \ |
| 108 | + --tag nightly-tests-2026-04-02-0-github-test-debian-13-docs \ |
| 109 | + "build/docs.tar.gz" |
| 110 | + env: |
| 111 | + CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 112 | + - name: Verify uploaded artifacts |
| 113 | + shell: bash |
| 114 | + run: | |
| 115 | + archery crossbow \ |
| 116 | + --queue-path $(pwd)/crossbow \ |
| 117 | + --queue-remote https://github.com/ursacomputing/crossbow \ |
| 118 | + status \ |
| 119 | + --task-filter 'test-debian-13-docs' \ |
| 120 | + --no-fetch \ |
| 121 | + --validate \ |
| 122 | + nightly-tests-2026-04-02-0 |
| 123 | + env: |
| 124 | + CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
0 commit comments