-
-
Notifications
You must be signed in to change notification settings - Fork 270
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: crate build issues with stream
feature
#711
Conversation
Fix a build issue introduced by XAMPPRocky#690 when building octocrab with the `stream` feature. Closes: XAMPPRocky#707
Thank you for your PR! Would you mind adding a step in CI to check the stream feature? |
Congrats, seems like you broke LLVM 😄 |
Are the logs taking up too much space? Could that be the reason ld panics? |
GHA runners don't have too much free storage capacity. You could try to free some with something like https://github.com/google/oss-fuzz/blob/7c3fe25727d36308fc32d34b1bd83895e52e1d44/.github/workflows/project_tests.yml#L65-L74 |
afc853a
to
bb1d54a
Compare
This PR might genuinely be cursed... |
Okay, so there are two more solutions to this problem I can think of.
Both of these approaches are compromises, and it'd be great if we could somehow universally extract more space - or tell cargo to delete any targets we don't need, without clearing the entire build cache, but that seems to be harder than anticipated. Does anyone have a better idea? |
Something like: jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
channel: [stable, beta, nightly]
os: [ubuntu, macos, windows]
features:
- ""
- "-F stream"
steps:
- uses: actions/checkout@v2
- run: rustup default ${{ matrix.channel }}
- run: cargo build --verbose --all-targets ${{ matrix.features }}
- run: cargo test ${{ matrix.features }} should work™? |
That would definitely queue-up some jobs (GitHub only allows for 20 total concurrent jobs, a maximum of 5 of which can be MacOS runners: https://docs.github.com/en/actions/administering-github-actions/usage-limits-billing-and-administration#usage-limits), but I think that's the most simple solution. I'll try it out when I have the time to. |
Looks like we're finally passing all tests :) |
Thank you for your PR! |
Fix a build issue introduced by #690 when building octocrab with the
stream
feature, which the pr checks didn't catch.Closes: #707