Skip to content

Fix build for working with docs.rs #22

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

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Fix build for working with docs.rs #22

merged 1 commit into from
Jul 13, 2022

Conversation

ifraixedes
Copy link
Collaborator

@ifraixedes ifraixedes commented Jul 12, 2022

docs.rs couldn't create the docs of the uplink-sys crate because the
build image that it uses doesn't have Go installed. At the same time
this breaks the docs generation of any crate that depends on the
uplink-sys.

Add the uplink-c binaries libraries for Linux x86_64 architecture, trick
the build script to work differently when executed by docs.rs, and
restrict docs.rs to only build the crate with this architecture works.

Also, update the Github workflow for verifying on each PR that the
uplink-c lib binaries are up to date with the version that the
git submodules references for not allowing to merge a PR without having
them updated.


Closes #21

I've tested the changes with a local docs.rs environment and it worked, I hope that his will work in the production docs.rs.

  • I (the merger of this PR) confirm that I'm copying the PR message above the line as the message of the commit that merge these changes to the main branch.

@ifraixedes ifraixedes force-pushed the if/issue-21 branch 10 times, most recently from b656367 to 0d6a0ea Compare July 12, 2022 18:32
@ifraixedes ifraixedes marked this pull request as ready for review July 12, 2022 18:37
@ifraixedes ifraixedes requested a review from kmozurkewich July 12, 2022 18:37
@ifraixedes ifraixedes self-assigned this Jul 12, 2022
docs.rs couldn't create the docs of uplink-sys crate because the build
image that it uses doesn't have Go installed.

Add the uplink-c binaries libraries for Linux x86_64 architecture, trick
the build script to work differently when executed by docs.rs, and
restrict docs.rs to only build the crate with this architecture works.

Also update the Github workflow for verifying on each PR that the
uplink-c lib binaries are up to date with the version that the
git submodules references for not allowing to merge a PR without having
them updated.
@ifraixedes ifraixedes added type:enhancement New feature or request scope:build Issues / PRs realted with the build process labels Jul 13, 2022
@kmozurkewich kmozurkewich merged commit 8886698 into main Jul 13, 2022
@ifraixedes ifraixedes deleted the if/issue-21 branch October 31, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:build Issues / PRs realted with the build process type:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix build for working with docs.rs
2 participants