-
Notifications
You must be signed in to change notification settings - Fork 801
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
ci: simplify workflow #1458
ci: simplify workflow #1458
Conversation
Thanks, but ... 🤔, is it good to use environmental variables to shorten commands? |
14bc993
to
e5624ca
Compare
I've pushed a commit to use "outputs" of a github actions step, maybe you prefer that? I wanted to use variables of some form because it simplifies maintenance of the CI scripts - every time we add a new feature, there were a lot of places to edit. Also the various cargo commands were getting inconsistent with PyPy. Now the structure is more consistent on all CI runs, and there's only one place to edit if we change a new feature. |
I'm sorry but I'm thinking that Github actions might provide something better than |
Ah ok, I'll revert that last commit? Always good to try things 😄 |
I noticed that we can use |
build.rs
Outdated
@@ -618,7 +618,11 @@ fn get_rustc_link_lib(config: &InterpreterConfig) -> String { | |||
// See https://www.python.org/dev/peps/pep-0384/#linkage | |||
// | |||
// This contains only the limited ABI symbols. | |||
if env::var_os("CARGO_FEATURE_ABI3").is_some() { | |||
if env::var_os("CARGO_FEATURE_ABI3").is_some() | |||
// FIXME: PyPy doesn't currently ship a stable ABI dll. |
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.
Isn't it better to abort the build with some warnings?
I think we can only refactor |
Ok will push a commit to rework this PR later today. Thanks for looking at this with me 👍 |
I'm gonna merge this so that I can rebase #1457 on it. Hope that's alright. (If there are changes you want, I'm happy to do them in a follow-up PR.) |
This extracts just the ci workflow file changes from #1457.
Instead of having separate build & test stages, this now just runs tests for various feature combinations. On pypy this command is overridden to just
build --lib --tests
.