| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | schedule: [cron: "40 1 * * *"] |
| 7 | |
| 8 | jobs: |
| 9 | test: |
| 10 | name: Rust ${{matrix.rust}} |
| 11 | runs-on: ubuntu-latest |
| 12 | strategy: |
| 13 | fail-fast: false |
| 14 | matrix: |
| 15 | rust: [nightly, beta, stable, 1.45.0, 1.42.0, 1.31.0] |
| 16 | steps: |
| 17 | - uses: actions/checkout@v2 |
| 18 | - uses: dtolnay/rust-toolchain@master |
| 19 | with: |
| 20 | toolchain: ${{matrix.rust}} |
| 21 | - if: matrix.rust == '1.31.0' |
| 22 | run: echo 'extern crate proc_macro;' >> demo-hack-impl/src/lib.rs |
| 23 | - run: cargo run --manifest-path example/Cargo.toml |
| 24 | - run: cargo test --all |