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

Update github action to support linux and macos asset uploading #18

Merged
merged 3 commits into from
Apr 8, 2023

Conversation

yorkzero831
Copy link
Contributor

As same as the title

chore: update github action

chore: update github action
@yorkzero831
Copy link
Contributor Author

@saharNooby Hi, I found your linux and macos assets are not been uploaded, so I modified your github action

uses: actions/upload-artifact@v3
with:
path: |
rwkv-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux.zip
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it needs to specify OS name, ubuntu in this case. As I know, there are many different Linuxes, and after building on Ubuntu library may just not work on some.

Is it possible to also include arch and OS version (for Mac OS too)? Maybe there is some env variable for that...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I will handle it asap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@saharNooby Hi, I have updated the file names.
you could check the file names from https://github.com/yorkzero831/rwkv.cpp/releases/tag/master-a3fe1c6
ubuntu aseet will look like rwkv-master-a3fe1c6-bin-Linux-Ubuntu-22.04-x86_64.zip
macos asset will look like rwkv-master-a3fe1c6-bin-Darwin-macOS-12.6.4-x86_64.zip
I was thought macos will run on M1 which is arm64, seems github action dosen't support it yet

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks great! One small thing -- Windows zips have rwkv.dll in the zip root, without subdirectories. Can Linux/MacOS zips also have no subdirectories for consistency? Or will it break something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I didn't realize it, will change, give me 10 mins

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@saharNooby saharNooby merged commit 5d99741 into RWKV:master Apr 8, 2023
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.

None yet

2 participants