File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
basics/hello-solana/steel Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,16 @@ jobs:
112112 run : |
113113 readarray -t all_projects < <(echo '${{ needs.changes.outputs.changed_projects }}' | jq -r '.[]?')
114114 for project in "${all_projects[@]}"; do
115- if [ -f "${project}/Cargo.toml" ]; then
116- echo "::group::Checking ${project}"
117- cd "${project}"
118- cargo fmt --check
119- cargo clippy --all-features -- -D warnings
120- cd - > /dev/null
121- echo "::endgroup::"
115+ echo "::group::Checking ${project}"
116+ if [ ! -f "${project}/Cargo.toml" ]; then
117+ echo "::error::No Cargo.toml found in ${project}"
118+ exit 1
122119 fi
120+ cd "${project}"
121+ cargo fmt --check
122+ cargo clippy --all-features -- -D warnings
123+ cd - > /dev/null
124+ echo "::endgroup::"
123125 done
124126
125127 build-and-test :
@@ -157,6 +159,7 @@ jobs:
157159 id : setup
158160 run : |
159161 npm install --global pnpm
162+
160163 # Create the build and test function
161164 cat << 'EOF' > build_and_test.sh
162165 function build_and_test() {
@@ -197,7 +200,7 @@ jobs:
197200 cd - > /dev/null
198201 return 1
199202 fi
200-
203+
201204 # Build
202205 if ! steel build; then
203206 echo "::error::steel build failed for $project"
@@ -214,7 +217,7 @@ jobs:
214217 return 1
215218 fi
216219 fi
217-
220+
218221 echo "Build and tests succeeded for $project with $solana_version version."
219222 cd - > /dev/null
220223 return 0
Original file line number Diff line number Diff line change 11[workspace ]
22resolver = " 2"
3- members = [" program" ]
3+ members = [" api " , " program" ]
44
55[workspace .package ]
66version = " 0.1.0"
@@ -13,9 +13,10 @@ readme = "./README.md"
1313keywords = [" solana" ]
1414
1515[workspace .dependencies ]
16+ hello-solana-api = { path = " ./api" , version = " 0.1.0" }
1617bytemuck = " 1.14"
1718num_enum = " 0.7"
1819solana-program = " 1.18"
1920steel = " 2.0"
2021thiserror = " 1.0"
21- solana-sdk = " 1.18"
22+ solana-sdk = " 1.18"
You can’t perform that action at this time.
0 commit comments