|
| 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: Setup Rust Runtime |
| 19 | +description: 'Setup Rust Runtime Environment' |
| 20 | +runs: |
| 21 | + using: "composite" |
| 22 | + steps: |
| 23 | + # https://github.com/apache/datafusion/issues/15535 |
| 24 | + # disabled because neither version nor git hash works with apache github policy |
| 25 | + #- name: Run sccache-cache |
| 26 | + # uses: mozilla-actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8 |
| 27 | + - name: Configure runtime env |
| 28 | + shell: bash |
| 29 | + # do not produce debug symbols to keep memory usage down |
| 30 | + # hardcoding other profile params to avoid profile override values |
| 31 | + # More on Cargo profiles https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings |
| 32 | + # |
| 33 | + # Set debuginfo=line-tables-only as debuginfo=0 causes immensely slow build |
| 34 | + # See for more details: https://github.com/rust-lang/rust/issues/119560 |
| 35 | + # |
| 36 | + # readd the following to the run below once sccache-cache is re-enabled |
| 37 | + # echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV |
| 38 | + # echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV |
| 39 | + run: | |
| 40 | + echo "RUST_BACKTRACE=1" >> $GITHUB_ENV |
| 41 | + echo "RUSTFLAGS=-C debuginfo=line-tables-only -C incremental=false" >> $GITHUB_ENV |
| 42 | + |
0 commit comments