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
# https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
# https://github.com/rust-lang/rustup/issues/3409
# https://github.com/dtolnay/rust-toolchain
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # at 00:00 every Sunday
jobs:
build:
name: Rust ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- "1.78.0"
- stable
- nightly
steps:
- uses: actions/checkout@master
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Run cargo build
run:
cargo build
- name: Run cargo test
run:
cargo test
- name: Run cargo publish (dry-run)
run:
cargo publish --dry-run