-
Notifications
You must be signed in to change notification settings - Fork 194
Conversation
If `repo/target` is ignored by the repository, it's OK to cache it.
I can't even build the branch xenial locally. There is already an issue #476
|
Hello 👋 Yes that was my intention! When the issue will be fixed I will complete the PR with wasm-pack and test on my own repo. Also we might want to fix the version of Rust to avoid the same issue than wasmer. Thanks a lot for the answer |
We actually don't need to. rustup ensures rustc is compiled for glibc 2.11+ (64-bit Linux (kernel 2.6.32+, glibc 2.11+)). See https://doc.rust-lang.org/nightly/rustc/platform-support.html So we can just install rust stable with rustup |
@@ -39,4 +39,6 @@ echo "Executing user command: $cmd" | |||
eval "$cmd" | |||
CODE=$? | |||
|
|||
cache_artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you adding this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, I'm not the author. Should I remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i'd remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e4e7354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah funny I have re-added this!
I know why the author added this. It's because when you run the test, the cache is restored (by install_dependencies
in line 29) but it is not saved after the job.
run-build-functions.sh
Outdated
@@ -55,11 +55,19 @@ mkdir -p $NETLIFY_CACHE_DIR/.composer | |||
mkdir -p $NETLIFY_CACHE_DIR/.gimme_cache/gopath | |||
mkdir -p $NETLIFY_CACHE_DIR/.gimme_cache/gocache | |||
mkdir -p $NETLIFY_CACHE_DIR/.wasmer/cache | |||
mkdir -p $NETLIFY_CACHE_DIR/.cargo/registry | |||
mkdir -p $NETLIFY_CACHE_DIR/repo/target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be replaced by:
mkdir -p $NETLIFY_REPO_DIR/target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it can be removed entirely. cargo
will create target
if it doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 5cd8e76
or you merge master in which won't require re-approval |
Sure! Can you do it on yewprint? https://github.com/cecton/yewprint
I use a merge workflow. It's fixed. |
@cecton I updated your site to run with this PR. let us know if it works for you 🙂 |
I tested, works like a charm @mraerino 👌 |
the team that owns the build process will give this a final look and likely release it next week. in the meantime i'll leave your site configured to use it and will switch it to the regular image once we rolled this. |
Thanks! But don't worry about that because I'm stuck with manual deployment for a little longer because of some other issues. You can change it back now if that makes your life easier @mraerino |
Thanks for your contribution! The changes to the image and install script look good to me. Could you update the (I think Languages makes more sense than Included Software, since we don't list rvm, nvm, etc. there, but open to other ideas on this.) We're planning to automate this (#441) but in the meantime I'm going to be the bot and note the image size change, which looks reasonable: $ docker image inspect cecton-rust:latest --format='{{.Size}}'
4427251610
$ docker image inspect netlify/build:xenial --format='{{.Size}}'
4398783842 @rstavchansky I believe we'll also need a change to https://docs.netlify.com/configure-builds/manage-dependencies/#dependency-cache, though I don't think it needs to block merging this PR and it might even be better to run it in production as an alpha for a while before adding it to the docs site. Adding the |
This reverts commit d66e848.
Done
Fair enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🦀 ! We'll include this in the next release of the build image and make a note here when it's live. Thanks again for your work on this.
This is live in our |
@cecton i reset the build image on your site. let me know if there is anything amiss. |
## Motivation At Netlify we recently introduced native Rust support in the build system: netlify/build-image#477 ## Solution This PR cleans up the Netlify build config to use a more straight-forward way of building rust docs. This also introduces a workaround for netlify/build-image#505 ## Kudos We're big fans of the `tracing` crate at Netlify and using it for many new systems recently. Very happy we can give something back! Closes #1130
## Motivation At Netlify we recently introduced native Rust support in the build system: netlify/build-image#477 ## Solution This PR cleans up the Netlify build config to use a more straight-forward way of building rust docs. This also introduces a workaround for netlify/build-image#505 ## Kudos We're big fans of the `tracing` crate at Netlify and using it for many new systems recently. Very happy we can give something back! Closes #1130
## Motivation At Netlify we recently introduced native Rust support in the build system: netlify/build-image#477 ## Solution This PR cleans up the Netlify build config to use a more straight-forward way of building rust docs. This also introduces a workaround for netlify/build-image#505 ## Kudos We're big fans of the `tracing` crate at Netlify and using it for many new systems recently. Very happy we can give something back! Closes #1130
Hello @fool
I just started recently a new OSS project supported by Netlify: https://yewprint.rm.rs (https://github.com/cecton/yewprint) which got approved today 🎉
I'm using Rust and the build time is not short (I don't really mind personally) but I still have build time limit for the sponsored OSS account. So here I am checking if I can help getting Rust support to the Netlify image.
There was already a PR (#320) but it seems to have been closed because of lack of attention. I want to bring this back to life and add wasm-pack and wasm-bindgen support (I suppose everybody who does Rust on Netlify are here to use WASM).
Mandatory gif:
cc @jamen @JeanBarriere @ultrasaurus
Tasks:
Add wasm-pack and wasm-bindgenCloses #293
Related to #320
Blocked by #476