ci: keep RUSTFLAGS consistent to not rebuild everything#1423
Conversation
cf491f3 to
f7003da
Compare
| # `bash` needed b/c macOS ships with bash 3, which doesn't support arrays properly. | ||
| brew install -q ninja gpg llvm@${{ matrix.clang-version }} bash z3 | ||
| echo "Z3_SYS_Z3_HEADER=/opt/homebrew/include/z3.h" >> $GITHUB_ENV | ||
| # It's important that we keep `RUSTFLAGS` consistent between different steps |
There was a problem hiding this comment.
Should we also put -D warnings here?
There was a problem hiding this comment.
They're skipped for the test_translator.py step, although that step doesn't rerun cargo so it doesn't trigger a rebuild. There's an existing comment there explaining why exactly it's skipped there (I forgot off the top of my head).
There was a problem hiding this comment.
For that step, do we still want the Z3 flags?
There was a problem hiding this comment.
Do we need it? It doesn't hurt, right? For test_translator.py, we specifically don't want -D warnings because the test files inherit that, too, which we didn't want.
|
Looks like some kind of quoting issue with |
Where do you see that error? I misquoted something initially, but I amended it. Was it that? CI right now looks like it's just failing on the |
I see that in the latest macOS CI (https://github.com/immunant/c2rust/actions/runs/18666232932/job/53218050385?pr=1423). |
`RUSTFLAGS` was being changed only in the `cargo test` step to link z3. This meant that `cargo build` was thrown out and redone, making everything take way longer. This moves the z3 addition to `RUSTFLAGS` to where we install `z3` and also only sets it for macOS, where it's needed (for brew).
f7003da to
7699a68
Compare
Ah, I was looking at the Linux one. I think I fixed macOS now. It's just running into the existing syn v2 problem. |
RUSTFLAGSwas being changed only in thecargo teststep to link z3. This meant thatcargo buildwas thrown out and redone, making everything take way longer. This moves the z3 addition toRUSTFLAGSto where we installz3and also only sets it for macOS, where it's needed (for brew).