Skip to content

anchor: new program id #424

anchor: new program id

anchor: new program id #424

name: Validate anchor IDL
on:
pull_request:
branches: ["main"]
paths:
- "anchor/**"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate anchor IDL
shell: bash
run: |
if [ $(cat anchor/target/idl/glam.json | jq -r .address) == "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc" ]; then
echo "Anchor IDL program address is correct."
else
echo "Anchor IDL program address is incorrect."
echo "Program address in the main branch IDL should be GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc (mainnet deploy)."
echo "Make sure you run \"anchor build\" or \"pnpm run anchor-build\" before pushing changes to your PR."
exit 1
fi