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

Switch to manually downloading the binary #201

Merged
merged 5 commits into from
Jan 27, 2025
Merged

Conversation

DavisVaughan
Copy link
Collaborator

@DavisVaughan DavisVaughan commented Jan 23, 2025

Closes #194

In theory we could use arch -x86_64 curl on Mac and keep using cargo-dist, but due to axodotdev/cargo-dist#1720 this does not work. I'm not really sure axodotdev/cargo-dist#1720 will get solved, as when I think about this more we are kind of abusing cargo-dist here. It's purpose is really to get you set up to run the tool (so bypassing Rosetta does seem to make sense on their end), all we were using it for is a way to magically download the right one for this platform, but that isn't too hard to set up ourself.

This dry run shows this seems to be working right
https://github.com/posit-dev/air/actions/runs/12935503617

I downloaded the x86 mac vsix artifact it created and file shows that the air binary bundled in there is indeed the right architecture now. The output from the run on Windows shows that the air.exe still makes it into the bundled/bin directory correctly.

@@ -72,7 +82,7 @@ jobs:

# Upload the extension.
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was forced to bump this by github actions

@DavisVaughan DavisVaughan merged commit ffe8e8b into main Jan 27, 2025
5 checks passed
@DavisVaughan DavisVaughan deleted the fix/download-manually branch January 27, 2025 14:49
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.

"bundled" version isn't compatible with Intel Macs (arm64 executable)
2 participants