-
Notifications
You must be signed in to change notification settings - Fork 18
Establish Infrastructure #105
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,28 +6,29 @@ on: | |
workflow_dispatch: # Allow manual dispatching | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
compile-test: | ||
name: Rust Compiler Tests | ||
msrv: | ||
name: MSRV Nightly Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Test local suites | ||
run: ./.github/scripts/run_own_tests.sh | ||
env: | ||
TOOLS_BIN: "/tmp/smir/bin" | ||
# Note that the downloaded version is dated 2025-08-09. | ||
toolchain: nightly-2025-08-10 | ||
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. I would prefer a toolchain toml file, as we'll update it frequently and that's easier to automate than editing a github workflow Fine for now tho if you want to land this first and tune later 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. Ah makes sense. I'd like to update it later together with the automation pr 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. Will that be a follow up PR? |
||
components: rust-src | ||
- run: ./x test | ||
|
||
- name: Test rustc suites | ||
run: ./.github/scripts/run_rustc_tests.sh | ||
env: | ||
RUST_REPO: "/tmp/rustc" | ||
TOOLS_BIN: "/tmp/smir/bin" | ||
# Don't fail CI for now. See: https://github.com/rust-lang/project-stable-mir/issues/39 | ||
continue-on-error: true | ||
latest: | ||
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. Btw, you should be able to create an action and reuse it for these two jobs. Not a big deal at this point, but if you have a follow up PR, that might be a nice change. I also want to add a test for latest stable 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.
Yes, that would be done as follow up
ummm iirc the stable version can’t enable rustc_private 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. People would still need to set bootstrap env variable |
||
name: Latest Nightly Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rust-src | ||
- run: ./x test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
/book/build | ||
**/target | ||
|
||
# direnv | ||
.envrc | ||
/.direnv | ||
|
||
.idea | ||
*.swp | ||
*.swo | ||
.vscode | ||
|
||
Cargo.lock |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Cargo workspace for utility tools used to check stable-mir in CI | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"tools/compiletest", | ||
"tools/test-drive", | ||
"devtool", | ||
"rustc_public", | ||
"test-drive", | ||
] | ||
|
||
exclude = [ | ||
"build", | ||
"target", | ||
"demo", | ||
"target", | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "devtool" | ||
version = "0.0.0" | ||
authors = ["rustc_public team"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/rust-lang/project-stable-mir" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
anyhow = "1.0.99" | ||
clap = { version = "4.1.3", features = ["derive"] } | ||
xshell = "0.2.6" |
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.
Do we need nightly for format check?