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

Windows build compatibility -- Actions for Trelis 17.1 and Cubit 2021 #85

Merged
merged 50 commits into from
Aug 30, 2021

Conversation

bam241
Copy link
Member

@bam241 bam241 commented Feb 24, 2021

This should not be reviewed before #84 gets merged. It builds on top of #84 and relies on some of those changes.
This also relies on multiples PR to be merged on dependencies such as MOAB, DAGMC and mncp2cad

This includes:

  • script to build Trelis plugin on Windows
  • GitHub action to build the windows plugin for Trelis 17.1 and Cubit 2020.2

This is NOT a standalone PR, it is depending on:

Sorry, something went wrong.

shell: bash -l {0}
run: |
cd ${PLUGIN_ABS_PATH}
git clone https://bitbucket.org/bam241/moab -b windows_2
Copy link
Member Author

@bam241 bam241 Feb 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be changed after MOAB PR gets merged.

run: |
cd ${PLUGIN_ABS_PATH}
mkdir dagmc_build dagmc_install
git clone https://github.com/bam241/dagmc -b windows
Copy link
Member Author

@bam241 bam241 Feb 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be changed after DAGMC PR gets merged.

cp -r /d/a/Trelis-plugin/Trelis-plugin ./
cd Trelis-plugin
rm -rf mcnp2cad
git clone https://github.com/bam241/mcnp2cad -b windows
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be changed after mcnp2cad PR gets merged.

-G"Visual Studio 16 2019" \
-DCubit_DIR="../Trelis/bin" \
-DCUBIT_ROOT="../Trelis/bin" \
-DUPDATE_SUBMODULES=OFF \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be changed after mcnp2cad PR gets merged.

@bam241 bam241 changed the title Windows build compatibility -- Actions for Trelis 17.1 and Cubit 2020.2 Windows build compatibility -- Actions for Trelis 17.1 and Cubit 2021 Jun 10, 2021
@gonuke
Copy link
Member

gonuke commented Aug 25, 2021

Do we use the build_windows.sh script anymore?

@shimwell
Copy link
Member

Wow this will be a great addition. Super work BaM.

I notice it uses the run-on windows-2019 option. Wondering if it would also work as run-on ubuntu but use an windows-2019 image for the build then we could perhaps easily include other images like the windows-2022 image if needed

@bam241
Copy link
Member Author

bam241 commented Aug 25, 2021

Do we use the build_windows.sh script anymore?

we never had one for windows.

@gonuke
Copy link
Member

gonuke commented Aug 25, 2021

Do we use the build_windows.sh script anymore?

we never had one for windows.

But I don't see it being used anywhere because the GH action explicitly includes all the build instructions instead

@bam241
Copy link
Member Author

bam241 commented Aug 25, 2021

Do we use the build_windows.sh script anymore?

we never had one for windows.

But I don't see it being used anywhere because the GH action explicitly includes all the build instructions instead

sorry, I lost track of that file..

this is an artefact of previous work. that will need to be removed eventually...

@bam241
Copy link
Member Author

bam241 commented Aug 25, 2021

Wow this will be a great addition. Super work BaM.

I notice it uses the run-on windows-2019 option. Wondering if it would also work as run-on ubuntu but use an windows-2019 image for the build then we could perhaps easily include other images like the windows-2022 image if needed

yes this is something we should/could consider in the future. I would like to keep this PR simple, as a first support of windows. I think we would need first to update that on the DAGMC CI.... to extend our windows capability.
One should also check that multiple windows build would be required, maybe (if we are lucky) a single build would be compatible with multiple windows version.... (as for Mac OS)

@bam241
Copy link
Member Author

bam241 commented Aug 25, 2021

current problem seems to be on core form side...
https://coreform.com/products/downloads/

don't see any download available on their website.... maybe their server crashed....

@shimwell
Copy link
Member

current problem seems to be on core form side...
https://coreform.com/products/downloads/

don't see any download available on their website.... maybe their server crashed....

I think it might be the cloud host https://downdetector.com/status/backblaze/

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to choose best release actions to trigger a build


release:
types: # This configuration does not affect the page_build event above
- created
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we learned last week that created was not a good choice. It is possible to create a draft release, which then triggers this, but when you publish the release, it does not trigger again.

@shimwell , did we pick a better one? Or maybe an additional one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we preferred published

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bam241
Copy link
Member Author

bam241 commented Aug 27, 2021

@gonuke this looks good to go ?
Anya additional comments/requests ?

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bam241 - exciting to see this getting close. Two items, only one is blocking.

shell: cmd
run: |
cd hdf
msiexec.exe /i HDF5-1.8.21-win64.msi /passive /norestart
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: does this mean that conda's HDF5 won't work? also the conda-forge version? I wonder if we can document this somewhere so that if/when someone tries again, they know what the problem(s) were

cp ../../plugin_install/bin/* ./
cp ../../plugin_install/lib/* ./
cd ${PLUGIN_ABS_PATH}
tar -cvf svalinn_plugin_windows_${{ matrix.cubit }}.tar bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use 7z to make a zip file instead of a tarball?

@bam241
Copy link
Member Author

bam241 commented Aug 30, 2021

@gonuke it seems to be working, using hdf5 conda and 7x :)

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get the ZIP format?

cp ../../plugin_install/bin/* ./
cp ../../plugin_install/lib/* ./
cd ${PLUGIN_ABS_PATH}
7z a C:/Users/runneradmin/svalinn_plugin_windows_${{ matrix.cubit }}.7z bin\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this with a .zip extension and ZIP format?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P.S. Thanks for figuring the rest out, @bam241 !

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!!! Thanks @bam241

@gonuke gonuke merged commit 7d07b7d into develop Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants