Skip to content

Commit

Permalink
Add github file
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Sep 1, 2023
1 parent f40ef99 commit acf8fec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/run_rustc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SMIR_PATH=$(git rev-parse --show-toplevel)
export RUST_BACKTRACE=1

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

if [[ ! -e "${RUST_REPO}" ]]; then
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run compiler tests

on:
schedule:
- cron: "0 6 * * *" # Run daily at 06:00 UTC
workflow_dispatch: # Allow manual dispatching
pull_request:

jobs:
compile-test:
name: Rust Compiler Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Test
run: ./.github/scripts/run_rustc_tests.sh
env:
RUST_REPO: "/tmp/rustc"
TOOLS_BIN: "/tmp/smir/bin"

0 comments on commit acf8fec

Please sign in to comment.