Skip to content

Commit f175b2e

Browse files
committed
CI: use git grep instead of ripgrep, and enforce bash
1 parent 27f8f72 commit f175b2e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/scripts/check-ocaml-refs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ echo "Current OCaml commit: ${CURRENT_COMMIT}"
6262

6363
# Find all Rust files with OCaml references
6464
cd "${RUST_ROOT}"
65-
RUST_FILES=$(rg -l "^/// OCaml reference:" --type rust || true)
65+
RUST_FILES=$(git grep -l -E "^/// OCaml reference:" "*.rs" "**/*.rs" || true)
6666

6767
if [ -z "$RUST_FILES" ]; then
6868
echo "No OCaml references found in Rust code"

.github/workflows/check-ocaml-refs.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ jobs:
4040
- name: Checkout repository
4141
uses: actions/checkout@v5
4242

43-
- name: Install ripgrep
44-
run: sudo apt-get update && sudo apt-get install -y ripgrep
45-
4643
- name: Run OCaml reference validation
4744
id: check
4845
env:
4946
OCAML_REPO: ${{ github.event.inputs.repo || 'https://github.com/MinaProtocol/mina.git' }}
5047
OCAML_BRANCH: ${{ github.event.inputs.branch || 'compatible' }}
48+
shell: bash
5149
run: |
5250
set +e
5351
# Capture output to file

0 commit comments

Comments
 (0)