File tree Expand file tree Collapse file tree 2 files changed +29
-42
lines changed Expand file tree Collapse file tree 2 files changed +29
-42
lines changed Original file line number Diff line number Diff line change @@ -13,47 +13,26 @@ jobs:
1313 build :
1414 name : Build
1515 runs-on : ubuntu-latest
16- strategy :
17- fail-fast : true
18- matrix :
19- include :
20- - name : Default build
21- opts : -r
22- - name : All Features
23- opts : --all-features
24- - name : SP3 Build
25- opts : --features sp3
26-
2716 steps :
28- - uses : actions/checkout@v3
29- - uses : actions-rs/toolchain@v1
30- name : Install Rust
17+ - uses : actions/checkout@v4
3118 with :
32- toolchain : stable
33- override : true
34- - name : Install Dependencies
35- run : |
36- sudo apt-get update
37-
38- - name : ${{ matrix.name }}
39- run : |
40- cargo clean && cargo update && cargo build ${{ matrix.opts }}
41-
42- tests :
43- name : Tests
44- runs-on : ubuntu-latest
45- steps :
46- - uses : actions/checkout@v3
19+ submodules : recursive
20+ fetch-depth : 0
21+
4722 - uses : actions-rs/toolchain@v1
4823 name : Install Rust
4924 with :
5025 toolchain : stable
5126 override : true
52- - name : Install Dependencies
53- run : |
54- sudo apt-get update
55- - uses : actions-rs/cargo@v1
56- name : Test (all features)
57- with :
58- command : test
59- args : --all-features
27+
28+ - name : Build (Default)
29+ run : cargo build
30+
31+ - name : Build (SP3)
32+ run : cargo build --features sp3
33+
34+ - name : Build (all features)
35+ run : cargo build --all-features
36+
37+ - name : Run tests
38+ run : cargo test --all-features
Original file line number Diff line number Diff line change @@ -16,23 +16,31 @@ jobs:
1616
1717 steps :
1818 - uses : actions/checkout@v4
19+ with :
20+ submodules : recursive
21+ fetch-depth : 0
22+
1923 - name : Build (Default)
20- run : cargo build --verbose
24+ run : cargo build
25+
2126 - name : Build (SP3)
2227 run : cargo build --features sp3
23- - name : Build (All)
28+
29+ - name : Build (all features)
2430 run : cargo build --all-features
31+
2532 - name : Run tests
26- run : cargo test --all-features --verbose
33+ run : cargo test --all-features
2734
2835 release :
2936 name : Release
3037 runs-on : ubuntu-latest
31- needs : [build]
38+ needs : [' build' ]
3239 if : github.ref_type == 'tag'
3340 steps :
3441 - name : Checkout
3542 uses : actions/checkout@v4
43+
3644 - name : Install stable toolchain
3745 uses : dtolnay/rust-toolchain@master
3846 with :
4250 TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
4351 run : |
4452 cargo login $TOKEN
45- cargo publish
53+ cargo publish --allow-dirty
You can’t perform that action at this time.
0 commit comments