-
Notifications
You must be signed in to change notification settings - Fork 6
make sysroot optional #1121
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
base: main
Are you sure you want to change the base?
make sysroot optional #1121
Changes from all commits
2735ec0
1c127fe
f3046b4
fdd021a
4c6d91d
56a313f
dc7a114
8dbe745
cc4ed20
84ae24f
ef7962b
d2c417a
e0bea6f
0f5f007
5516c51
f3af00d
d2df4ea
4621fc4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,6 +141,12 @@ jobs: | |
| sudo apt-get update | ||
| sudo apt-get install --yes --no-install-recommends just | ||
|
|
||
| - name: "install rust from upstream" | ||
| if: ${{ matrix.profile.sterile != 'sterile' }} | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: "clippy,rustfmt" | ||
|
|
||
| - name: "set up build environment" | ||
| run: | | ||
| REQUIRED_HUGEPAGES=512 | ||
|
|
@@ -149,14 +155,17 @@ jobs: | |
| docker run --privileged --rm busybox:latest sh -c "echo $((6 * REQUIRED_HUGEPAGES)) > $OVERCOMMIT_HUGEPAGES_PATH" | ||
| docker run --privileged --rm busybox:latest sh -c "echo $((2 * REQUIRED_HUGEPAGES)) > $HUGEPAGES_PATH" | ||
| docker pull "${{env.UPSTREAM_REGISTRY}}/githedgehog/testn/n-vm:v0.0.9" | ||
| just --yes \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
| profile=${{matrix.profile.name}} \ | ||
| registry="${{env.CACHE_REGISTRY}}" \ | ||
| refresh-compile-env | ||
| just --yes debug_justfile="${{matrix.debug_justfile}}" fake-nix | ||
| if [ "${{matrix.profile.sterile}}" = "sterile" ]; then | ||
| just --yes \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
| profile=${{matrix.profile.name}} \ | ||
| registry="${{env.CACHE_REGISTRY}}" \ | ||
| refresh-compile-env | ||
| just --yes debug_justfile="${{matrix.debug_justfile}}" fake-nix | ||
| fi | ||
|
|
||
| - name: "cargo deny check" | ||
| if: ${{ matrix.profile.sterile == 'sterile' }} | ||
| run: | | ||
| just \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
|
|
@@ -202,6 +211,16 @@ jobs: | |
| target=x86_64-unknown-linux-gnu \ | ||
| print-container-tags | ||
|
|
||
| - name: Install cargo-binstall | ||
| if: ${{ matrix.profile.sterile != 'sterile' }} | ||
| uses: cargo-bins/cargo-binstall@main | ||
|
|
||
| - name: Install nextest and kopium | ||
| if: ${{ matrix.profile.sterile != 'sterile' }} | ||
| run: | | ||
| cargo binstall cargo-nextest --secure | ||
| cargo binstall kopium --secure | ||
|
|
||
| - id: "test" | ||
| name: "test" | ||
| run: | | ||
|
|
@@ -220,7 +239,7 @@ jobs: | |
| --status-level=none \ | ||
| --final-status-level=skip \ | ||
| --message-format=libtest-json-plus > ./results.json | ||
| else | ||
| elif [ "${{ matrix.profile.sterile }}" = "sterile" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth splitting this step into four parts? One for running the tests iif the profile is Can be a follow-up I suppose, but it'd make the workflow clearer. It's becoming big. |
||
| echo "::notice::Running regular tests" | ||
| just \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
|
|
@@ -254,6 +273,13 @@ jobs: | |
| --features shuttle \ | ||
| shuttle \ | ||
| >> ./results.json | ||
| else | ||
| declare -rx NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1 | ||
| cargo nextest run \ | ||
| --status-level=none \ | ||
| --final-status-level=skip \ | ||
| --message-format=libtest-json-plus \ | ||
| > ./results.json | ||
| fi | ||
| # look for any flakes (flakes have a #\\d+ match in their name field) | ||
| jq \ | ||
|
|
@@ -339,17 +365,26 @@ jobs: | |
| - id: "clippy" | ||
| name: "run clippy" | ||
| run: | | ||
| just debug_justfile="${{matrix.debug_justfile}}" profile=${{matrix.profile.name}} \ | ||
| ${{matrix.profile.sterile}} cargo clippy --all-targets --all-features -- -D warnings | ||
| if [ "${{matrix.profile.sterile}}" != "sterile" ]; then | ||
| # you can't really get away with --all-features here since that enables dpdk | ||
| cargo clippy --all-targets -- -D warnings | ||
| else | ||
| just debug_justfile="${{matrix.debug_justfile}}" profile=${{matrix.profile.name}} \ | ||
| ${{matrix.profile.sterile}} cargo clippy --all-targets --all-features -- -D warnings | ||
| fi | ||
|
|
||
| - id: "docs" | ||
| name: "run rustdoc" | ||
| run: | | ||
| RUSTDOCFLAGS="-D warnings" just \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
| profile=${{matrix.profile.name}} \ | ||
| target=x86_64-unknown-linux-gnu \ | ||
| ${{matrix.profile.sterile}} cargo doc --no-deps | ||
| if [ "${{matrix.profile.sterile}}" != "sterile" ]; then | ||
| cargo doc --no-deps | ||
| else | ||
| RUSTDOCFLAGS="-D warnings" just \ | ||
| debug_justfile="${{matrix.debug_justfile}}" \ | ||
| profile=${{matrix.profile.name}} \ | ||
| target=x86_64-unknown-linux-gnu \ | ||
| ${{matrix.profile.sterile}} cargo doc --no-deps | ||
| fi | ||
|
Comment on lines
376
to
+387
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you rebase, you should see an additional step just below this one, for running the doctests - You probably want to update that one, too. |
||
|
|
||
| - name: "Setup tmate session for debug" | ||
| if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
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 will now break all compiles on machines that don't have the tool chain installed locally unless they manually put compile-env on the path. Is there any way to avoid breaking this? Perhaps by just adding compile-env to path and using it if it is there?
This will certainly break my dev environment in ways I would be unhappy with.