File tree Expand file tree Collapse file tree 2 files changed +87
-0
lines changed
Expand file tree Collapse file tree 2 files changed +87
-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+ tags-ignore :
8+ - ' v[0-9]+.**'
9+ paths :
10+ - ' src/**.rs'
11+ - ' Cargo.*'
12+ pull_request :
13+ types : [opened, synchronize, reopened]
14+ workflow_dispatch :
15+
16+ env :
17+ CARGO_TERM_COLOR : always
18+ RUST_BACKTRACE : full
19+
20+ jobs :
21+ check :
22+ name : Check
23+ runs-on : ubuntu-latest
24+ strategy :
25+ fail-fast : false
26+ matrix :
27+ toolchain : [1.64, stable]
28+ steps :
29+ - uses : actions/checkout@v4
30+ - uses : actions-rust-lang/setup-rust-toolchain@v1
31+ with :
32+ toolchain : ${{ matrix.toolchain }}
33+ - run : cargo check --all-targets --all-features
34+
35+ check-style :
36+ name : Check style
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v4
40+ - uses : actions-rust-lang/setup-rust-toolchain@v1
41+ with :
42+ components : rustfmt
43+ - name : Rustfmt Check
44+ uses : actions-rust-lang/rustfmt@v1
45+
46+ clippy :
47+ name : Clippy
48+ runs-on : ubuntu-latest
49+ steps :
50+ - uses : actions/checkout@v4
51+ - uses : actions-rust-lang/setup-rust-toolchain@v1
52+ with :
53+ components : clippy
54+ - run : cargo clippy --all-targets --all-features
55+
56+ test :
57+ name : Test
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : actions/checkout@v4
61+ - uses : actions-rust-lang/setup-rust-toolchain@v1
62+ - run : cargo test --all-features
Original file line number Diff line number Diff line change 1+ name : Create release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[0-9]+.**'
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ name : Pushed release tag
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Create release
17+ env :
18+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ tag : ${{ github.ref_name }}
20+ run : |
21+ gh release create "$tag" \
22+ --title "csz $tag" \
23+ --target "$GITHUB_SHA" \
24+ --repo "$GITHUB_REPOSITORY" \
25+ --generate-notes
You can’t perform that action at this time.
0 commit comments