Skip to content

Commit 6500c72

Browse files
authored
Establish Infrastructure (#105)
* make rustc_public a `crates.io` crate * establish infrastructrure * move `tests/` to `rustc_public/` s * conditional compilation of rustc crates * remove redundant content in rustfmt.toml * remove rust-toolchain.toml of rustc_public * add `Cargo.lock`
1 parent 81f4c6f commit 6500c72

37 files changed

+2550
-476
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/book/build
22
**/target
33

4+
# direnv
5+
.envrc
6+
/.direnv
7+
48
.idea
59
*.swp
610
*.swo

0 commit comments

Comments
 (0)