2021-11-27 08:57:43 -08:00
|
|
|
name: "Setup ts"
|
|
|
|
description: "Setup ts"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2022-11-25 07:14:53 -08:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
name: Cache Typescript node_modules
|
|
|
|
id: cache-typescript-node-modules
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
./ts/node_modules/
|
|
|
|
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/yarn.lock') }}
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
name: Cache Typescript Dist
|
|
|
|
id: cache-typescript-dist
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
./ts/dist/
|
|
|
|
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/*.ts') }}
|
2022-12-05 02:47:36 -08:00
|
|
|
- run: cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && cd ../../../
|
|
|
|
shell: bash
|
2022-11-25 07:14:53 -08:00
|
|
|
- run: cd ts/packages/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
shell: bash
|
|
|
|
- run: cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
shell: bash
|
|
|
|
- run: cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
shell: bash
|
2022-12-16 05:21:50 -08:00
|
|
|
- run: cd examples/tutorial && yarn link @coral-xyz/anchor && yarn --frozen-lockfile && cd ../../
|
2022-11-25 07:14:53 -08:00
|
|
|
shell: bash
|
2022-12-16 05:21:50 -08:00
|
|
|
- run: cd tests && yarn link @coral-xyz/anchor && yarn link @coral-xyz/spl-associated-token-account && yarn link @coral-xyz/spl-token && yarn --frozen-lockfile && cd ..
|
2022-11-25 07:14:53 -08:00
|
|
|
shell: bash
|