dbg: env+network probes

This commit is contained in:
2026-09-02 16:58:16 +03:00
parent c6c00c511e
commit 110c09cf69
+7 -41
View File
@@ -9,45 +9,11 @@ jobs:
deploy-devnet: deploy-devnet:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Debug env + network
uses: actions/checkout@v4
- name: Setup Rust toolchain + C compiler
run: | run: |
apt-get update echo "=== ENV (proxy/actions) ==="
apt-get install -y --no-install-recommends build-essential pkg-config libssl-dev clang env | grep -iE 'proxy|ACTIONS|GITHUB_TOKEN|RUNNER' | sort
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ echo "=== curl github ==="
sh -s -- -y --profile minimal --default-toolchain 1.89.0 curl -sS -o /dev/null -w "github HTTP %{http_code}\n" --max-time 10 https://github.com/actions/checkout 2>&1 | tail -1
echo "=== curl rustup ==="
- name: Setup Solana CLI curl -sS -o /dev/null -w "rustup HTTP %{http_code}\n" --max-time 10 https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init 2>&1 | tail -1
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.26/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Setup Anchor CLI (anchor-next)
run: |
. "$HOME/.cargo/env"
cargo install --force --git https://github.com/anchor-lang/anchor.git \
--branch anchor-next anchor-cli --locked
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Airdrop devnet SOL (to keypair address)
run: |
solana airdrop 2 9ALsnxXNzDBv3mokngCHbruRTWUZiWR7pf7vswS1fCpf \
--url https://api.devnet.solana.com || \
solana airdrop 2 9ALsnxXNzDBv3mokngCHbruRTWUZiWR7pf7vswS1fCpf \
--url https://api.devnet.solana.com
- name: Build program
working-directory: program
run: anchor build
- name: Test program
working-directory: program
run: anchor test
- name: Deploy to devnet
working-directory: program
run: anchor deploy --provider.cluster devnet \
--provider.wallet ../deploy/dev_smart_updown-keypair.json