Skip to content

Refactor CPI code for ABIv2 (#15) #32

Refactor CPI code for ABIv2 (#15)

Refactor CPI code for ABIv2 (#15) #32

Workflow file for this run

name: Crate Check
on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- "**/Cargo.toml"
- ".github/workflows/crate-check.yml"
- "./ci/check-crates.sh"
jobs:
check:
name: crate check
if: github.repository_owner == 'anza-xyz'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Get commit range (push)
if: ${{ github.event_name == 'push' }}
run: |
echo "COMMIT_RANGE=${{ github.event.before }}..$GITHUB_SHA" >> $GITHUB_ENV
- name: Get commit range (pull_request)
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "COMMIT_RANGE=${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: Setup Rust
shell: bash
run: |
source ci/rust-version.sh stable
rustup default $rust_stable
- name: Install toml-cli
shell: bash
run: |
cargo install toml-cli
- run: |
ci/check-crates.sh