Skip to content

Commit acf8fec

Browse files
committed
Add github file
1 parent f40ef99 commit acf8fec

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/scripts/run_rustc_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SMIR_PATH=$(git rev-parse --show-toplevel)
1212
export RUST_BACKTRACE=1
1313

1414
pushd "${SMIR_PATH}"
15-
cargo +smir build -Z unstable-options --out-dir "${TOOLS_BIN}"
15+
cargo build -Z unstable-options --out-dir "${TOOLS_BIN}"
1616
export PATH="${TOOLS_BIN}":"${PATH}"
1717

1818
if [[ ! -e "${RUST_REPO}" ]]; then

.github/workflows/nightly.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run compiler tests
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *" # Run daily at 06:00 UTC
6+
workflow_dispatch: # Allow manual dispatching
7+
pull_request:
8+
9+
jobs:
10+
compile-test:
11+
name: Rust Compiler Tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Test
18+
run: ./.github/scripts/run_rustc_tests.sh
19+
env:
20+
RUST_REPO: "/tmp/rustc"
21+
TOOLS_BIN: "/tmp/smir/bin"

0 commit comments

Comments
 (0)