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

Fix windows release builds #26986

Merged

Conversation

CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Aug 8, 2022

Problem

#26854 broke windows release builds do to the requirement of a C compiler

Summary of Changes

On windows machines, use installed protoc, instead of trying to build vendored package

Here is an example successful build: https://github.com/solana-labs/solana/runs/7721331802?check_suite_focus=true
from this branch, hacked up to run the CI job on a PR and only build the solana-storage-proto crate

Adding protoc to $PATH instead of setting the envar should also work, if you prefer that approach @yihau .

@CriesofCarrots CriesofCarrots requested a review from yihau August 8, 2022 08:25
@yihau
Copy link
Member

yihau commented Aug 8, 2022

thank you! I tried lots times today 😢 like yihau@a8c196d and yihau@af7aefa but no luck.

@yihau
Copy link
Member

yihau commented Aug 8, 2022

oh no. I think set env is clear and good! 👍

@CriesofCarrots
Copy link
Contributor Author

thank you! I tried lots times today 😢 like yihau@a8c196d and yihau@af7aefa but no luck.

Yeah, it ended up being more annoying than I thought initially 😞 Thanks for all your efforts on it, though!

@CriesofCarrots CriesofCarrots merged commit 46b3ece into solana-labs:master Aug 8, 2022
mergify bot pushed a commit that referenced this pull request Aug 8, 2022
* Don't try to build protobuf-src on windows

* Set protoc envar

(cherry picked from commit 46b3ece)
mergify bot added a commit that referenced this pull request Aug 8, 2022
Fix windows release builds (#26986)

* Don't try to build protobuf-src on windows

* Set protoc envar

(cherry picked from commit 46b3ece)

Co-authored-by: Tyera Eulberg <[email protected]>
apfitzge pushed a commit to apfitzge/agave that referenced this pull request Aug 9, 2022
* Don't try to build protobuf-src on windows

* Set protoc envar
xiangzhu70 pushed a commit to xiangzhu70/solana that referenced this pull request Aug 17, 2022
* Don't try to build protobuf-src on windows

* Set protoc envar
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