Skip to content

Commit

Permalink
svm: fix ci 2
Browse files Browse the repository at this point in the history
Signed-off-by: bingyuyap <[email protected]>
  • Loading branch information
bingyuyap committed Nov 25, 2024
1 parent 454b559 commit 4382e86
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/svm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jobs:
run: |
ANCHOR_VERSION="$(awk '/anchor_version =/ { print substr($3, 2, length($3)-2) }' Anchor.toml)"
echo "::set-output name=version::${ANCHOR_VERSION}"
- name: Install Anchor CLI
run: |
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install ${{steps.anchor.outputs.version}}
avm use ${{steps.anchor.outputs.version}}
- name: Manual submodule initialization
run: |
git submodule init
git submodule update --recursive --force
echo "\nAfter manual initialization:"
ls -la lib/ || echo "lib directory still does not exist"
- name: Build dependencies
run: make build
- uses: evan-gray/anchor-test@06370fbca011ee48b176211b8f858789d6c33282
Expand Down
4 changes: 4 additions & 0 deletions svm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ init:

# Build the endpoint program
build-endpoint:
@if [ ! -d "lib/example-messaging-endpoint/svm" ]; then \
echo "Error: example-messaging-endpoint/svm directory not found"; \
exit 1; \
fi
cd lib/example-messaging-endpoint/svm && anchor build

# Build everything
Expand Down

0 comments on commit 4382e86

Please sign in to comment.