File tree 3 files changed +46
-25
lines changed
3 files changed +46
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ schedule :
9
+ - cron : ' 0 5 * * *'
10
+ workflow_call :
11
+
12
+ env :
13
+ CARGO_TERM_COLOR : always
14
+
15
+ jobs :
16
+ build :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Build
21
+ run : cargo build --verbose
22
+ - name : Run tests
23
+ run : cargo test --verbose
24
+ - name : Check formatting
25
+ run : cargo fmt --all -- --check
26
+ - name : Run clippy
27
+ run : cargo clippy -- -D clippy::all
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*.*.*
7
+
8
+ jobs :
9
+ build :
10
+ uses : ZenGo-X/curv/.github/workflows/build.yml@master
11
+ publish :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Publish crate
16
+ env :
17
+ TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
18
+ run : |
19
+ cargo publish --token "$TOKEN"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments