File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -16,54 +16,44 @@ jobs:
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v3
19
- - name : Install just
20
- run : cargo install just
21
19
- name : Check
22
- run : just check-fmt
20
+ run : bash contrib/scripts/ check-fmt.sh check
23
21
24
22
check-crates :
25
23
name : Check crates
26
24
runs-on : ubuntu-latest
27
25
steps :
28
26
- name : Checkout
29
27
uses : actions/checkout@v3
30
- - name : Install just
31
- run : cargo install just
32
28
- name : Check
33
- run : just check-crates
29
+ run : bash contrib/scripts/ check-crates.sh "" ci
34
30
35
31
check-crates-msrv :
36
32
name : Check crates (MSRV)
37
33
runs-on : ubuntu-latest
38
34
steps :
39
35
- name : Checkout
40
36
uses : actions/checkout@v3
41
- - name : Install just
42
- run : cargo install just
43
37
- name : Check
44
- run : just check-crates- msrv
38
+ run : bash contrib/scripts/ check-crates.sh msrv ""
45
39
46
40
check-bindings :
47
41
name : Check bindings
48
42
runs-on : ubuntu-latest
49
43
steps :
50
44
- name : Checkout
51
45
uses : actions/checkout@v3
52
- - name : Install just
53
- run : cargo install just
54
46
- name : Check
55
- run : just check-bindings
47
+ run : bash contrib/scripts/ check-bindings.sh
56
48
57
49
check-docs :
58
50
name : Check docs
59
51
runs-on : ubuntu-latest
60
52
steps :
61
53
- name : Checkout
62
54
uses : actions/checkout@v3
63
- - name : Install just
64
- run : cargo install just
65
55
- name : Check
66
- run : just check-docs
56
+ run : bash contrib/scripts/ check-docs.sh
67
57
68
58
build-no-std :
69
59
name : Build no_std
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ set -euo pipefail
5
5
# MSRV
6
6
msrv=" 1.64.0"
7
7
8
+ is_ci=false
8
9
is_msrv=false
9
10
version=" "
10
11
@@ -14,6 +15,11 @@ if [[ "$#" -gt 0 && "$1" == "msrv" ]]; then
14
15
version=" +$msrv "
15
16
fi
16
17
18
+ # Check if "ci" is passed as an argument
19
+ if [[ " $# " -gt 0 && " $2 " == " ci" ]]; then
20
+ is_ci=true
21
+ fi
22
+
17
23
# Check if MSRV
18
24
if [ " $is_msrv " == true ]; then
19
25
# Install MSRV
@@ -22,6 +28,9 @@ if [ "$is_msrv" == true ]; then
22
28
rustup target add wasm32-unknown-unknown --toolchain $msrv
23
29
fi
24
30
31
+ echo " CI: $is_ci "
32
+ echo " MSRV: $is_msrv "
33
+
25
34
buildargs=(
26
35
" -p nostr"
27
36
" -p nostr --no-default-features --features alloc"
@@ -30,7 +39,7 @@ buildargs=(
30
39
" -p nostr-sdk"
31
40
" -p nostr-sdk --no-default-features"
32
41
" -p nostr-sdk --features nip47,nip57"
33
- # "-p nostr-sdk --features nip47,nip57 --target wasm32-unknown-unknown"
42
+ " -p nostr-sdk --features nip47,nip57 --target wasm32-unknown-unknown"
34
43
" -p nostr-sdk --features indexeddb,webln --target wasm32-unknown-unknown"
35
44
" -p nostr-sdk --features sqlite"
36
45
" -p nostr-sdk --features ndb"
75
84
76
85
cargo $version clippy $arg -- -D warnings
77
86
87
+ # If CI, clean every time to avoid to go out of space (GitHub Actions issue)
88
+ if [ " $is_ci " == true ]; then
89
+ cargo clean
90
+ fi
91
+
78
92
echo
79
93
done
You can’t perform that action at this time.
0 commit comments