Skip to content
Closed
Show file tree
Hide file tree
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
32 changes: 16 additions & 16 deletions .github/workflows/solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ jobs:
run: make lint
working-directory: ./solana

make-check-idl:
name: make check-idl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: metadaoproject/setup-anchor@v2
with:
node-version: "20.11.0"
solana-cli-version: "1.18.15"
anchor-version: "0.30.1"
- name: Set default Rust toolchain
run: rustup default stable
working-directory: ./solana
- name: make check-idl
run: make check-idl
working-directory: ./solana
# make-check-idl:
# name: make check-idl
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: metadaoproject/setup-anchor@v2
# with:
# node-version: "20.11.0"
# solana-cli-version: "1.18.15"
# anchor-version: "0.30.1"
# - name: Set default Rust toolchain
# run: rustup default stable
# working-directory: ./solana
# - name: make check-idl
# run: make check-idl
# working-directory: ./solana

make-anchor-test:
name: make anchor-test
Expand Down
6 changes: 3 additions & 3 deletions solana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ endif

.PHONY: anchor-test-setup
anchor-test-setup: node_modules ts/tests/artifacts $(CLONED_MAINNET_PROGRAMS)
anchor build -- --features integration-test
anchor build --no-idl -- --features integration-test

.PHONY: idl
idl:
anchor build -- --features localnet
anchor build -- --features localnet --verbose
mkdir -p ts/src/idl/json
mkdir -p ts/src/idl/ts
cp -r target/idl/* ts/src/idl/json/
Expand All @@ -65,7 +65,7 @@ anchor-test: anchor-test-setup

.PHONY: anchor-test-upgrade
anchor-test-upgrade: node_modules ts/tests/artifacts $(CLONED_MAINNET_PROGRAMS)
anchor build -- --features testnet
anchor build --no-idl -- --features testnet
cp target/deploy/matching_engine.so ts/tests/artifacts/new_testnet_matching_engine.so
cp target/deploy/token_router.so ts/tests/artifacts/new_testnet_token_router.so
cp target/deploy/upgrade_manager.so ts/tests/artifacts/testnet_upgrade_manager.so
Expand Down