Skip to content

Commit

Permalink
Expose pythnet message buffer idls
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Jun 8, 2023
1 parent 0330c9d commit c6238fa
Show file tree
Hide file tree
Showing 10 changed files with 3,754 additions and 2,363 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/message-buffer-idl-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Message Buffer IDL Check
on:
pull_request:
paths:
- pythnet/message_buffer/**
push:
branches:
- main
paths:
- pythnet/message_buffer/**
jobs:
abi-check:
name: Check Message Buffer IDL files are up to date
runs-on: ubuntu-latest
defaults:
run:
working-directory: pythnet/message_buffer
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-03-01
components: rustfmt, clippy
- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.14.18/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Install Anchor
run: |
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
- name: Build and generate IDLs
run: anchor build
- name: Copy anchor target files
run: cp ./target/idl/* idl/ && cp ./target/types/* idl/
- name: Run prettier (to avoid pre-commit failures)
uses: actionsx/prettier@v2
with:
args: --write idl/*
- name: Check ABI changes
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for
# the current version of the contract and update idl directory.
run: git diff --exit-code idl/*
Loading

0 comments on commit c6238fa

Please sign in to comment.