39
39
check :
40
40
if : github.repository == 'anza-xyz/agave'
41
41
runs-on : ubuntu-latest
42
+ strategy :
43
+ matrix :
44
+ programs :
45
+ - associated-token-account
46
+ - feature-proposal
47
+ - instruction-padding
48
+ - memo
49
+ - record
50
+ - single-pool
51
+ - slashing
52
+ - stake-pool
53
+ - token-2022
54
+ # re-enable with https://github.com/buffalojoec/mollusk/pull/74
55
+ # - token
42
56
steps :
43
57
- uses : actions/checkout@v4
44
58
@@ -53,45 +67,20 @@ jobs:
53
67
- shell : bash
54
68
run : |
55
69
source .github/scripts/downstream-project-spl-install-deps.sh
56
- source .github/scripts/downstream-project-spl-common.sh
70
+ source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
57
71
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
58
72
exit 0
59
73
fi
60
-
61
74
cargo check
62
75
63
- test :
76
+ test_cli :
64
77
if : github.repository == 'anza-xyz/agave'
65
78
runs-on : ubuntu-latest
66
79
strategy :
67
80
matrix :
68
- arrays :
69
- [
70
- {
71
- test_paths : ["token/cli"],
72
- required_programs :
73
- [
74
- " token/program" ,
75
- " token/program-2022" ,
76
- " associated-token-account/program" ,
77
- " instruction-padding/program" ,
78
- ],
79
- },
80
- {
81
- test_paths : ["single-pool/cli"],
82
- required_programs :
83
- [
84
- " single-pool/program" ,
85
- ],
86
- },
87
- {
88
- test_paths : ["token-upgrade/cli"],
89
- required_programs :
90
- [
91
- " token-upgrade/program" ,
92
- ],
93
- },
94
- ]
81
+ programs :
82
+ - single-pool
83
+ - token-2022
95
84
steps :
96
85
- uses : actions/checkout@v4
97
86
@@ -106,45 +95,30 @@ jobs:
106
95
- shell : bash
107
96
run : |
108
97
source .github/scripts/downstream-project-spl-install-deps.sh
109
- source .github/scripts/downstream-project-spl-common.sh
98
+ source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
110
99
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
111
100
exit 0
112
101
fi
113
-
114
- programStr="${{ tojson(matrix.arrays.required_programs) }}"
115
- IFS=', ' read -ra programs <<<"${programStr//[\[\]$'\n'$'\r' ]/}"
116
- for program in "${programs[@]}"; do
117
- $CARGO_BUILD_SBF --manifest-path "$program"/Cargo.toml
118
- done
119
-
120
- testPathsStr="${{ tojson(matrix.arrays.test_paths) }}"
121
- IFS=', ' read -ra test_paths <<<"${testPathsStr//[\[\]$'\n'$'\r' ]/}"
122
- for test_path in "${test_paths[@]}"; do
123
- cargo test --manifest-path "$test_path"/Cargo.toml
124
- done
102
+ $CARGO_BUILD_SBF --manifest-path program/Cargo.toml
103
+ cargo test --manifest-path clients/cli/Cargo.toml
125
104
126
105
cargo-test-sbf :
127
106
if : github.repository == 'anza-xyz/agave'
128
107
runs-on : ubuntu-latest
129
108
strategy :
130
109
matrix :
131
110
programs :
132
- - [token/program]
133
- - [
134
- instruction-padding/program,
135
- token/program-2022,
136
- token/program-2022-test,
137
- ]
138
- - [
139
- associated-token-account/program,
140
- associated-token-account/program-test,
141
- ]
142
- - [token-upgrade/program]
143
- - [feature-proposal/program]
144
- - [governance/addin-mock/program, governance/program]
145
- - [name-service/program]
146
- - [stake-pool/program]
147
- - [single-pool/program]
111
+ - associated-token-account
112
+ - feature-proposal
113
+ - instruction-padding
114
+ - memo
115
+ - record
116
+ - single-pool
117
+ - slashing
118
+ - stake-pool
119
+ - token-2022
120
+ # re-enable with https://github.com/buffalojoec/mollusk/pull/74
121
+ # - token
148
122
steps :
149
123
- uses : actions/checkout@v4
150
124
@@ -159,14 +133,8 @@ jobs:
159
133
- shell : bash
160
134
run : |
161
135
source .github/scripts/downstream-project-spl-install-deps.sh
162
- source .github/scripts/downstream-project-spl-common.sh
136
+ source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
163
137
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
164
138
exit 0
165
139
fi
166
-
167
- programStr="${{ tojson(matrix.programs) }}"
168
- IFS=', ' read -ra programs <<<"${programStr//[\[\]$'\n'$'\r' ]/}"
169
-
170
- for program in "${programs[@]}"; do
171
- $CARGO_TEST_SBF --manifest-path "$program"/Cargo.toml
172
- done
140
+ $CARGO_TEST_SBF --manifest-path program/Cargo.toml
0 commit comments