Skip to content

Commit 76287c2

Browse files
committed
CI: use git grep instead of ripgrep, and enforce bash
1 parent a309a8e commit 76287c2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

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

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

6867
if [ -z "$RUST_FILES" ]; then
6968
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)