Skip to content

Conversation

@tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Feb 24, 2025

No description provided.

@tgodzik tgodzik force-pushed the upload-zips branch 4 times, most recently from c512e71 to 6a7390e Compare February 24, 2025 15:25
Comment on lines 47 to 52
- 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 }}
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Collaborator

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' }}...

Copy link
Contributor Author

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.

@tgodzik tgodzik force-pushed the upload-zips branch 6 times, most recently from 1f22fe8 to 7abbfb4 Compare February 25, 2025 17:11
@tgodzik tgodzik merged commit 72b5b90 into scalameta:main Feb 26, 2025
22 checks passed
@tgodzik tgodzik deleted the upload-zips branch February 26, 2025 16:07
kitbellew added a commit that referenced this pull request Feb 28, 2025
kitbellew added a commit that referenced this pull request Feb 28, 2025
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.

2 participants