Skip to content

update cargo.toml, check build failures #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/anchor.yml
Original file line number Diff line number Diff line change
@@ -104,14 +104,15 @@ jobs:
failed_projects: ${{ steps.set-failed.outputs.failed_projects }}
steps:
- uses: actions/checkout@v4
- uses: heyAyushh/setup-anchor@v4.4
- uses: heyAyushh/setup-anchor@v4.9
with:
anchor-version: 0.30.1
solana-cli-version: stable
node-version: 20.x
use-avm: false
- name: Display Versions and Install pnpm
run: |
cargo-build-sbf --version
solana -V
solana-keygen new --no-bip39-passphrase
rustc -V
@@ -127,9 +128,24 @@ jobs:
echo "Building and Testing $project"
cd "$project" || return 1
# Check Cargo.lock version before build
if [ -f "Cargo.lock" ]; then
echo "Checking Cargo.lock version for $project"
grep "^version = " Cargo.lock | head -n1
else
echo "No Cargo.lock found for $project"
fi
# Run anchor build
if ! anchor build; then
echo "::error::anchor build failed for $project"
# Check Cargo.lock version after failed build
if [ -f "Cargo.lock" ]; then
echo "Cargo.lock version after failed build:"
grep "^version = " Cargo.lock | head -n1
fi
echo "$project: anchor build failed" >> $GITHUB_WORKSPACE/failed_projects.txt
rm -rf target
cd - > /dev/null
4 changes: 2 additions & 2 deletions .github/workflows/poseidon.yml
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ jobs:
failed_projects: ${{ steps.set-failed.outputs.failed_projects }}
steps:
- uses: actions/checkout@v4
- uses: heyAyushh/setup-anchor@v4.4
- uses: heyAyushh/setup-anchor@v4.9
with:
anchor-version: 0.30.1
solana-cli-version: stable
@@ -273,4 +273,4 @@ jobs:
echo "## :white_check_mark: All builds and tests passed" >> $GITHUB_STEP_SUMMARY
else
echo "## :warning: Build and test job was skipped or canceled" >> $GITHUB_STEP_SUMMARY
fi
fi
4 changes: 2 additions & 2 deletions .github/workflows/solana-native.yml
Original file line number Diff line number Diff line change
@@ -180,7 +180,7 @@ jobs:
# Install pnpm
npm install --global pnpm
- name: Setup Solana stable
uses: heyAyushh/setup-solana@v5.5
uses: heyAyushh/setup-solana@v5.9
with:
solana-cli-version: stable
- name: Build and Test with Stable
@@ -190,7 +190,7 @@ jobs:
rustc -V
process_projects "stable"
- name: Setup Solana 1.18.17
uses: heyAyushh/setup-solana@v5.5
uses: heyAyushh/setup-solana@v5.9
with:
solana-cli-version: 1.18.17
- name: Build and Test with 1.18.17
2 changes: 1 addition & 1 deletion .github/workflows/steel.yml
Original file line number Diff line number Diff line change
@@ -268,7 +268,7 @@ jobs:
process_projects "stable"
sccache --show-stats
- name: Setup Solana 1.18.17
uses: heyAyushh/setup-solana@v5.5
uses: heyAyushh/setup-solana@v5.9
with:
solana-cli-version: 1.18.17
- name: Build and Test with 1.18.17
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ node_modules/

**/*/node_modules
**/*/package-lock.json
**/*/Cargo.lock

**/*/.anchor
**/*/.DS_Store
Loading