File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed
Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ schedule :
9+ # run CI every day even if no PRs/merges occur
10+ - cron : ' 0 12 * * *'
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Format
18+ run : cargo fmt && git diff --exit-code
19+ - name : Lint
20+ run : |
21+ rustup update
22+ rustup component add clippy
23+ cargo clippy -- -D warnings
24+ test :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v2
28+
29+ - name : Build
30+ run : cargo build
31+
32+ - name : Test
33+ run : cargo test
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - ' v*'
5+
6+ name : release
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : create release
15+ id : create_release
16+ uses : actions/create-release@v1
17+ env :
18+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ with :
20+ tag_name : ${{ github.ref }}
21+ release_name : Release ${{ github.ref }}
22+ draft : false
23+ prerelease : ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
24+
25+ - name : publish to crates.io
26+ run : |
27+ echo ${{ secrets.CRATES_IO_TOKEN }} | cargo login
28+ cargo publish
You can’t perform that action at this time.
0 commit comments