| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
permissions: |
| 5 |
contents: read |
| 6 |
on: |
| 7 |
push: |
| 8 |
branches: [main] |
| 9 |
pull_request: |
| 10 |
schedule: |
| 11 |
- cron: '7 7 * * *' |
| 12 |
concurrency: |
| 13 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 14 |
cancel-in-progress: true |
| 15 |
name: rolling |
| 16 |
jobs: |
| 17 |
|
| 18 |
nightly: |
| 19 |
runs-on: ubuntu-latest |
| 20 |
name: ubuntu / nightly |
| 21 |
steps: |
| 22 |
- uses: actions/checkout@v4 |
| 23 |
with: |
| 24 |
submodules: true |
| 25 |
- name: Install nightly |
| 26 |
uses: dtolnay/rust-toolchain@nightly |
| 27 |
- name: cargo generate-lockfile |
| 28 |
if: hashFiles('Cargo.lock') == '' |
| 29 |
run: cargo generate-lockfile |
| 30 |
- name: cargo test --locked |
| 31 |
run: cargo test --locked --all-features --all-targets |
| 32 |
|
| 33 |
update: |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
runs-on: ubuntu-latest |
| 40 |
name: ubuntu / beta / updated |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
steps: |
| 45 |
- uses: actions/checkout@v4 |
| 46 |
with: |
| 47 |
submodules: true |
| 48 |
- name: Install beta |
| 49 |
if: hashFiles('Cargo.lock') != '' |
| 50 |
uses: dtolnay/rust-toolchain@beta |
| 51 |
- name: cargo update |
| 52 |
if: hashFiles('Cargo.lock') != '' |
| 53 |
run: cargo update |
| 54 |
- name: cargo test |
| 55 |
if: hashFiles('Cargo.lock') != '' |
| 56 |
run: cargo test --locked --all-features --all-targets |
| 57 |
env: |
| 58 |
RUSTFLAGS: -D deprecated |