pyne / pyne

PyNE: The Nuclear Engineering Toolkit
http://pyne.io/
Other
261 stars 176 forks source link

Routine testing of amalgamated PyNE #1492

Open gonuke opened 10 months ago

gonuke commented 10 months ago

One of the products offered by PyNE is the ability to create a single header and accompanying single source file to amalgamate certain pyne functionalities for inclusion in other projects.

Occasionally, there are updates to the PyNE build process (e.g. #1247) that may or may not be relevant for using an amalgamated PyNE. We may want to include a github action that will create an amalgamated pyne and then try to build it into a simple test project.

ahnaf-tahmid-chowdhury commented 10 months ago

Are you looking for a workflow that will run amalgamate.py and build pyne.cpp and pyne.h file? Then, a main.cpp file will be created that will contain the test code.

#include "pyne.h"

int main() {
    // test code 
    return 0;
}

After that, a compiler to build the test project.

g++ -o test_project main.cpp pyne.cpp

Finally, run the test project.

./test_project