-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fix NuGet packaging #529
Conversation
- 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 |
There was a problem hiding this comment.
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.
- 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
Fixes #528
runtimes
directory in the.csproj
file to fail the build when those files are missing