Skip to content

remove anchor cache #36

remove anchor cache

remove anchor cache #36

Workflow file for this run

name: build
env:
cli-id: anchor-v0.29.2-solana-1.17.0
on:
push:
branches:
- 'fix_actions'
jobs:
build-and-test:
runs-on: ubicloud-standard-8
steps:
- id: cache-cli-deps
uses: actions/cache@v2
with:
key: $${{ env.cli-id }}
path: |
~/.local/share/solana
- id: install-os-deps
if: steps.cache-cli-deps.outputs.cache-hit != 'true'
run: sudo apt-get update && sudo apt-get install -y pkg-config build-essential libudev-dev
- id: install-solana-tools
if: steps.cache-cli-deps.outputs.cache-hit != 'true'
run: sh -c "$(curl -sSfL https://release.solana.com/v1.17.0/install)"
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: install-anchor
# if: steps.cache-cli-deps.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: bridgesplit/anchor
run: cargo build &&
mv anchor/target/debug/anchor ./programs/anchor &&
chmod u+x ./programs/anchor
- run: echo "PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV
- uses: actions/setup-node@v2
with:
node-version: '18'
- id: run-tests
run:
cd ./clients/rwa-token-sdk && yarn &&
cd ../../programs && cargo fmt -- --check &&
cargo clippy -- -D warnings &&
./anchor build &&
./anchor test