aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rolling.yml
blob: 386c0df5cc89d5bab5a028a0330c1140ed4654a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This workflow runs every morning at midnight. It will run cargo hack
# and a build with msrv. If any dependency breaks our crate, we will
# know ASAP.
#
# - check: build with all features
# - msrv: check that the msrv specified in the crate is correct
permissions:
  contents: read

on:
  schedule:
    - cron: '0 0 * * *'

name: rolling
jobs:

  check:
    runs-on: ubuntu-latest
    name: ubuntu / stable / features
    strategy:
      fail-fast: false
    steps:
      - uses: actions/checkout@v5
        with:
          submodules: true
      - name: Install stable
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: thumbv8m.main-none-eabihf

      - name: cargo install cargo-hack
        uses: taiki-e/install-action@cargo-hack
      - name: cargo check
        run: |
          cargo update
          cargo check --all-features check

  msrv:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        msrv: ["1.85"] # We're relying on namespaced-features, which
                       # was released in 1.60
                       #
                       # We also depend on `fixed' which requires rust
                       # 1.71
                       #
                       # Additionally, we depend on embedded-hal-async
                       # which requires 1.75
                       #
                       # embassy-time requires 1.79 due to
                       # collapse_debuginfo
                       #
                       # embassy upstream switched to rust 1.83
                       #
                       # embedded-services (storage bus) dependency
                       # requires 1.85
    name: ubuntu / ${{ matrix.msrv }} (${{ matrix.commit }})
    steps:
      - uses: actions/checkout@v5
        with:
          submodules: true
      - name: Install ${{ matrix.msrv }}
        uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ matrix.msrv }}
          targets: thumbv8m.main-none-eabihf
      - name: cargo +${{ matrix.msrv }} check
        run: |
          cargo update
          cargo check --all-features check