Skip to content

Commit 00ce048

Browse files
committed
establish infrastructrure
1 parent 1f6d11c commit 00ce048

File tree

21 files changed

+413
-466
lines changed

21 files changed

+413
-466
lines changed

.github/scripts/run_own_tests.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/scripts/run_rustc_tests.sh

Lines changed: 0 additions & 116 deletions
This file was deleted.

.github/workflows/format.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
16+
- name: Rust Toolchain
17+
uses: dtolnay/rust-toolchain@nightly
1518

1619
- name: Run Rust Format
17-
run: cargo fmt --check
20+
run: ./x fmt --check

.github/workflows/nightly.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,29 @@ on:
66
workflow_dispatch: # Allow manual dispatching
77
pull_request:
88

9+
defaults:
10+
run:
11+
shell: bash
12+
913
jobs:
10-
compile-test:
11-
name: Rust Compiler Tests
14+
msrv:
15+
name: MSRV Nightly Tests
1216
runs-on: ubuntu-latest
1317
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
17-
- name: Install latest nightly
18-
uses: actions-rs/toolchain@v1
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@master
1920
with:
20-
toolchain: nightly
21-
22-
- name: Test local suites
23-
run: ./.github/scripts/run_own_tests.sh
24-
env:
25-
TOOLS_BIN: "/tmp/smir/bin"
21+
# Note that the downloaded version is dated 2025-08-09.
22+
toolchain: nightly-2025-08-10
23+
components: rust-src
24+
- run: ./x test
2625

27-
- name: Test rustc suites
28-
run: ./.github/scripts/run_rustc_tests.sh
29-
env:
30-
RUST_REPO: "/tmp/rustc"
31-
TOOLS_BIN: "/tmp/smir/bin"
32-
# Don't fail CI for now. See: https://github.com/rust-lang/project-stable-mir/issues/39
33-
continue-on-error: true
26+
latest:
27+
name: Latest Nightly Tests
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: dtolnay/rust-toolchain@nightly
32+
with:
33+
components: rust-src
34+
- run: ./x test

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
/book/build
22
**/target
33

4+
# direnv
5+
.envrc
6+
/.direnv
7+
48
.idea
59
*.swp
610
*.swo
711
.vscode
12+
13+
Cargo.lock

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
# Cargo workspace for utility tools used to check stable-mir in CI
21
[workspace]
32
resolver = "2"
43
members = [
5-
"tools/compiletest",
6-
"tools/test-drive",
4+
"devtool",
75
"rustc_public",
6+
"test-drive",
87
]
98

109
exclude = [
1110
"build",
12-
"target",
1311
"demo",
12+
"target",
1413
]

devtool/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "devtool"
3+
version = "0.0.0"
4+
authors = ["rustc_public team"]
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/project-stable-mir"
7+
edition = "2021"
8+
9+
[dependencies]
10+
anyhow = "1.0.99"
11+
clap = { version = "4.1.3", features = ["derive"] }
12+
xshell = "0.2.6"

0 commit comments

Comments
 (0)