Skip to content

Commit

Permalink
Use bash for Bazel command capture, try to improve globs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjng committed Mar 11, 2024
1 parent 4674d1e commit d619deb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/capture-compile-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
name: compile-commands-${{ matrix.os}}-cmake
path: |
# the build subfolder name is autogenerated, so just use a glob.
nanobind_example/build/cp312-*/build.ninja # this has the linker command section.
nanobind_example/build/cp312-*/*.ninja # this has the linker command section.
nanobind_example/build/cp312-*/CMakeCache.txt
nanobind_example/build/cp312-*/compile_commands.json
if-no-files-found: error
Expand All @@ -50,12 +50,13 @@ jobs:
--@rules_python//python/config_settings:python_version=3.12 \
--@nanobind_bazel//:minsize \
--@nanobind_bazel//:py-limited-api=cp312
shell: bash
working-directory: nanobind_example
- name: Upload Bazel compile commands and flag files for ${{ matrix.os }}
uses: actions/upload-artifact@v4
with:
name: compile-commands-${{ matrix.os}}-bazel
path: |
nanobind_example/compile_commands.json
nanobind_example/bazel-out/*-opt/**/*.params # these should be two - the libnanobind params, and the nanobind_example_ext params.
nanobind_example/bazel-out/**/*.params # these should be two - the libnanobind params, and the nanobind_example_ext params.
if-no-files-found: error

0 comments on commit d619deb

Please sign in to comment.