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

Fix NuGet packaging #529

Merged
merged 5 commits into from
Jan 15, 2025
Merged

Fix NuGet packaging #529

merged 5 commits into from
Jan 15, 2025

Conversation

rubo
Copy link
Contributor

@rubo rubo commented Jan 15, 2025

Fixes #528

  • Fixed the issue with NuGet package artifacts introduced in Update github actions versions due to deprecation #525
  • Removed checks for artifacts of the runtimes directory in the .csproj file to fail the build when those files are missing
  • Updated and consolidated the target .NET versions from 6 and 7 to the latest LTS version of 8
  • Updated dependencies
  • Optimized artifacts downloading in GitHub Actions workflow

Comment on lines 106 to -118
- uses: actions/download-artifact@v4
with:
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes/linux-x64/native
- uses: actions/download-artifact@v4
with:
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes/osx-x64/native
- uses: actions/download-artifact@v4
with:
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes/win-x64/native
- uses: actions/download-artifact@v4
with:
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes/osx-arm64/native
- uses: actions/download-artifact@v4
with:
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes/linux-arm64/native
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These actions were downloading all 5 artifacts 5 times for no reason. Now, it does once and later puts each of them where they should be.

Comment on lines 85 to +96
- uses: actions/download-artifact@v4
with:
pattern: 'ckzg-library-wrapper-${{ matrix.target.location }}-*'
path: bindings/csharp/Ckzg.Bindings/runtimes/${{ matrix.target.location }}/native
merge-multiple: true
pattern: ckzg-library-wrapper-*
path: bindings/csharp/Ckzg.Bindings/runtimes
- name: Move artifacts
working-directory: bindings/csharp/Ckzg.Bindings/runtimes
run: |
mv ckzg-library-wrapper-linux-arm64/ckzg.so linux-arm64/native/ckzg.so
mv ckzg-library-wrapper-linux-x64/ckzg.so linux-x64/native/ckzg.so
mv ckzg-library-wrapper-osx-arm64/ckzg.dylib osx-arm64/native/ckzg.dylib
mv ckzg-library-wrapper-osx-x64/ckzg.dylib osx-x64/native/ckzg.dylib
mv ckzg-library-wrapper-win-x64/ckzg.dll win-x64/native/ckzg.dll
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the checks have been removed from the .csproj file, we need to ensure that each artifact is present even though it is not used on the platform being run.

Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for the other updates too!

@jtraglia jtraglia merged commit d1168fc into ethereum:main Jan 15, 2025
42 checks passed
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.

The NuGet package missing the runtimes directory
2 participants