Skip to content

Generating geometry files and outputs on release #15

Open
@shimwell

Description

@shimwell

To avoid swamping the repository with stp, stl, h5, h5m files it would be ideal if they could all be generated on a release and added to the tar.gz file made on release.

The CAD geometry could be made (stp, stl) converted to neutronics (h5m) and simulated mading (h5) output files.

I've had a quick go at this using a github action but couldn't get it to work

The action is currently commented out and I hope to come back to this at some point

# not currently working due to outdated dockerfiles
# upload_workflow_output_files_to_release:
# needs: build_and_push_release
# runs-on: ubuntu-latest
# name: 'create_files'
# container:
# image: ghcr.io/fusion-energy/fusion-neutronics-workflow
# steps:
# - uses: actions/checkout@v2
# - name: run example_01_single_volume_cell_tally
# run: |
# cd example_01_single_volume_cell_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py
# - name: run example_02_multi_volume_cell_tally
# run: |
# cd example_02_multi_volume_cell_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py
# - name: run example_04_multi_volume_regular_mesh_tally
# run: |
# cd example_04_multi_volume_regular_mesh_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py
# - name: run example_05_3D_unstructured_mesh_tally
# run: |
# cd example_05_3D_unstructured_mesh_tally
# python 1_create_cad_and_convert_to_dagmc.py
# mbconvert stage_2_output/unstructured_mesh.cub stage_2_output/unstructured_mesh.h5m
# python 2_run_neutronics_simulation.py
# - name: Upload artifact for CI
# uses: actions/upload-artifact@v2
# with:
# name: output_files_produced.zip
# path: output_files_produced.zip
# if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
# - name: compress files
# run: |
# apt-get -y update
# apt-get -y install zip
# zip -r output_files_produced.zip example_*
# - name: Upload files into the release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: output_files_produced.zip
# asset_name: output_files_produced.zip
# tag: ${{ github.ref }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions