Closed amontoison closed 6 months ago
Yeah sounds good but we need to fix mesonbuild/meson/issues/12523 first.
@jfowkes I tested it a little bit this week-end and I have the following result: https://github.com/amontoison/spral/releases
When I tag a new version vx.y.z
on my fork amontoison/spral
, this action here is triggered.
The YAML file for the action is here.
It cross-compiles SPRAL on a few platforms and at the end of the process creates a release with the archives.
@amontoison is it possible to have an empty body_path
? I think the release description will always have to be manually edited. The current ChangeLog is ancient.
@jfowkes Yes, I checked the README of actions/create-release and you just need to to use body
with an empty message instead of body_path
.
But we have other actions that can generate the release message automatically for us if we want.
I just wanted to prototype it yesterday.
I also want to use to GitHub Actions to directly provide the content of the following variables in the Julia files: https://github.com/amontoison/spral/blob/master/.github/julia/build_tarballs.jl#L32 https://github.com/amontoison/spral/blob/master/.github/julia/build_tarballs.jl#L36 https://github.com/amontoison/spral/blob/master/.github/julia/generate_binaries.jl#L2
It should not be to hard.
It will help a lot the users if we can use it in SPRAL
, GALAHAD
, CUTEst
and SIFDecode
repositories to provide precompiled binaries.
About the ChangeLog, maybe we should remove it?
@amontoison sounds good to me. Yes agreed we should probably remove the ChangeLog and rely on the Github releases description instead.
The culprit was Ninja
...
I fixed the issue with the two additional lines in the build_tarballs.jl
.
python3 -m pip install --user --upgrade ninja
cp /root/.local/bin/ninja /usr/bin/ninja
@amontoison could you create a PR for this? I think this is too fancy for me to do...
I believe adding a GitHub Actions script that triggers only on new release tags should be straightforward. It would execute the following commands and upload the resulting archives:
If it works, we can reuse the same script for other repositories like
GALAHAD
,CUTEst
orSIFDecode
.The content of
build_tarballs.jl
is:The content of
generate_binaries.jl
is: