-
Notifications
You must be signed in to change notification settings - Fork 284
improvement: Upload zip to limit download sizes #4847
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
Conversation
c512e71 to
6a7390e
Compare
.github/workflows/release-native.yml
Outdated
| - name: Zip artifact for deployment | ||
| if: ${{ !startsWith(matrix.deploy.os, 'windows') }} | ||
| run: zip ${{ matrix.deploy.name }} ${{ env.BINARY_NAME }} | ||
| - name: Zip artifact for deployment | ||
| if: ${{ startsWith(matrix.deploy.os, 'windows') }} | ||
| run: 7z a ${{ matrix.deploy.name }} ${{ env.BINARY_NAME }} |
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.
one rule, perhaps:
- name: Zip ...
run: ${{
startsWith(matrix.deploy.os, 'windows') &&
7z matrix.deploy.name 'scalafmt.exe' ||
zip matrix.deploy.name 'scalafmt'
}}
and remove definition of BINARY_NAME under env.
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.
I couldn't make it work like this, but I removed BINARY_NAME let me know what you think
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.
sounds good, approved. perhaps we can't construct argv within ${{ }}, or perhaps we just need to use quotes, like ${{ '7z' 'a' matrix.deploy.name 'scalafmt.exe' }}...
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.
I tried that as well and unless there is something else to change I don't think that will work. It actually reported the previous line without any data.
1f22fe8 to
7abbfb4
Compare
No description provided.