Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ jobs:
with:
workspaces: crates/codegraph-core

# Force clang for the host x86_64-linux-gnu build. With gcc (the runner's
# default `cc`) the bundled C parsers in tree-sitter-hcl produce a binary
# whose HCL extractor silently drops files (#1054). Clang produces a
# working binary.
- name: Use clang for x86_64-linux-gnu
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
clang --version
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"

- name: Install cross-compilation tools (aarch64-gnu)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ jobs:
with:
workspaces: crates/codegraph-core

# Force clang on Linux runners. With gcc (the default cc) the bundled
# C parsers in tree-sitter-hcl produce a binary whose HCL extractor
# silently drops files (#1054). Clang produces a working binary.
- name: Use clang on Linux
if: matrix.os == 'ubuntu-latest'
run: |
clang --version
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"

- name: Install napi-rs CLI
run: npm install -g @napi-rs/cli@3

Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ jobs:
with:
workspaces: crates/codegraph-core

# Match the build-native job: gcc-built tree-sitter parsers drop files
# on Linux x86_64 (#1054). Use clang here too so preflight parity tests
# exercise the same binary characteristics as the published artifact.
- name: Use clang for native build
run: |
clang --version
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"

- name: Install napi-rs CLI
run: npm install -g @napi-rs/cli@3

Expand Down Expand Up @@ -178,6 +187,18 @@ jobs:
with:
workspaces: crates/codegraph-core

# Force clang for the host x86_64-linux-gnu build. With gcc (the runner's
# default `cc`) the bundled C parsers in tree-sitter-hcl produce a binary
# whose HCL extractor silently drops files (#1054), triggering an
# expensive WASM backfill on every build call. Clang produces a working
# binary. Verified locally: gcc 14.2.0 drops .tf files, clang does not.
- name: Use clang for x86_64-linux-gnu
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
clang --version
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"

- name: Install cross-compilation tools (aarch64-gnu)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
Expand Down
Loading