Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Codegen as sources from CMake #4104

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
19 changes: 0 additions & 19 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,3 @@ jobs:
- name: Check
run: >
CI/check_unused_files.py

codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: >
pip install -r codegen/requirements.txt
- name: Check
run: >
CI/check_codegen
- uses: actions/upload-artifact@v4
if: failure()
with:
name: changed
path: changed
38 changes: 0 additions & 38 deletions CI/check_codegen

This file was deleted.

1 change: 1 addition & 0 deletions CI/check_unused_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def main():
# TODO Mention these files somewhere?
"generate_particle_data_table.py",
"lazy_autodoc.py",
"codegen/src/codegen/sympy_common.py",
)

suffix_header = (
Expand Down
10 changes: 10 additions & 0 deletions Core/src/Definitions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
target_sources(ActsCore PRIVATE Common.cpp Direction.cpp ParticleData.cpp)

include(ActsCodegen)

acts_code_generation(
TARGET ParticleDataTable
PYTHON ${CMAKE_SOURCE_DIR}/Fatras/scripts/generate_particle_data_table.py
OUTPUT ParticleDataTable.hpp
)

target_link_libraries(ActsCore PRIVATE ParticleDataTable)
Loading
Loading