|
| 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 | + |
| 19 | +# NOTE: must set "Crossbow" as name to have the badge links working in the |
| 20 | +# github comment reports! |
| 21 | +name: Crossbow |
| 22 | +on: |
| 23 | + push: |
| 24 | + branches: |
| 25 | + - "*-github-*" |
| 26 | + |
| 27 | +env: |
| 28 | + ARCHERY_DEBUG: 1 |
| 29 | + |
| 30 | + |
| 31 | +jobs: |
| 32 | + test: |
| 33 | + name: | |
| 34 | + Docker Test conda-cpp |
| 35 | + runs-on: ubuntu-latest |
| 36 | + env: |
| 37 | + UBUNTU: "22.04" |
| 38 | + |
| 39 | + timeout-minutes: 60 |
| 40 | + steps: |
| 41 | + - name: Checkout Arrow |
| 42 | + uses: actions/checkout@v4 |
| 43 | + with: |
| 44 | + fetch-depth: 1 |
| 45 | + path: arrow |
| 46 | + repository: apache/arrow |
| 47 | + ref: e4cdd003d789afbaa33c006ea665dbf79ff708bd |
| 48 | + submodules: recursive |
| 49 | + |
| 50 | + - name: Free up disk space |
| 51 | + if: runner.os == 'Linux' && runner.arch == 'X64' |
| 52 | + shell: bash |
| 53 | + run: | |
| 54 | + arrow/ci/scripts/util_free_space.sh |
| 55 | +
|
| 56 | + - name: Set up Python |
| 57 | + uses: actions/setup-python@v4 |
| 58 | + with: |
| 59 | + cache: 'pip' |
| 60 | + python-version: 3.12 |
| 61 | + - name: Install Archery |
| 62 | + shell: bash |
| 63 | + run: pip install -e arrow/dev/archery[all] |
| 64 | + |
| 65 | + |
| 66 | + - name: Execute Docker Build |
| 67 | + shell: bash |
| 68 | + env: |
| 69 | + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" |
| 70 | + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" |
| 71 | + SCCACHE_BUCKET: "${{ secrets.SCCACHE_BUCKET }}" |
| 72 | + SCCACHE_REGION: "${{ secrets.SCCACHE_REGION }}" |
| 73 | + SCCACHE_S3_KEY_PREFIX: "sccache" |
| 74 | + |
| 75 | + run: | |
| 76 | + # GH-40558: reduce ASLR to avoid TSAN crashing |
| 77 | + sudo sysctl -w vm.mmap_rnd_bits=28 |
| 78 | + source arrow/ci/scripts/util_enable_core_dumps.sh |
| 79 | + archery docker run \ |
| 80 | + -e SETUPTOOLS_SCM_PRETEND_VERSION="21.0.0.dev317" \ |
| 81 | + \ |
| 82 | + conda-cpp \ |
| 83 | + |
| 84 | +
|
| 85 | + - name: Dump R install logs |
| 86 | + if: always() |
| 87 | + run: | |
| 88 | + log=arrow/r/check/arrow.Rcheck/00install.out |
| 89 | + if [ -f ${log} ]; then |
| 90 | + cat ${log} |
| 91 | + fi |
| 92 | + - name: Dump R test logs |
| 93 | + if: always() |
| 94 | + run: | |
| 95 | + for log in arrow/r/check/arrow.Rcheck/tests/testthat.Rout*; do |
| 96 | + if [ -f ${log} ]; then |
| 97 | + echo ${log} |
| 98 | + cat ${log} |
| 99 | + fi |
| 100 | + done |
| 101 | + - name: Save the R test output |
| 102 | + if: always() |
| 103 | + uses: actions/upload-artifact@v4 |
| 104 | + with: |
| 105 | + name: test-output |
| 106 | + path: | |
| 107 | + arrow/r/tests/ |
| 108 | + arrow/r/arrow.Rcheck/ |
| 109 | + !arrow/r/arrow.Rcheck/00_pkg_src/ |
| 110 | + !arrow/r/arrow.Rcheck/arrow/ |
| 111 | + if-no-files-found: ignore |
| 112 | + |
| 113 | + - name: Login to Dockerhub |
| 114 | + uses: docker/login-action@v2 |
| 115 | + with: |
| 116 | + username: ${{ secrets.DOCKERHUB_USER }} |
| 117 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 118 | + |
| 119 | + - name: Push Docker Image |
| 120 | + if: true |
| 121 | + shell: bash |
| 122 | + run: archery docker push conda-cpp |
0 commit comments