This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 7e792c931 chore(ci): add `-o pipefail` to default `bash` shell for
Rust jobs and fix CI job (#2421)
7e792c931 is described below
commit 7e792c931dc8dc76d1e683d214e192b04b939be2
Author: Matthijs Brobbel <[email protected]>
AuthorDate: Tue Jan 7 01:26:38 2025 +0100
chore(ci): add `-o pipefail` to default `bash` shell for Rust jobs and fix
CI job (#2421)
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
Setting default shell for Rust CI jobs to `bash -l -eo pipefail {0}`.
Without `pipefail` the exit code is the result of the last command (e.g.
`popd` as noted here
https://github.com/apache/arrow-adbc/pull/2414#issuecomment-2573937068).
---
.github/workflows/rust.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index ee63a8c0f..3f43cdc72 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -38,7 +38,7 @@ permissions:
defaults:
run:
- shell: bash -l {0}
+ shell: bash -l -eo pipefail {0}
jobs:
rust:
@@ -83,8 +83,10 @@ jobs:
curl -L
"https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-osx-universal_binary.zip"
-o protoc.zip
unzip "protoc.zip" -d $HOME/.local
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
+ - name: Install sqlite3
+ if: runner.os == 'Linux'
+ run: sudo apt-get install libsqlite3-dev
- name: Build C++/Go drivers
- shell: bash -l {0}
run: |
mkdir -p build
mkdir -p local