ci: Improvements (#1074)
This commit is contained in:
parent
5e8d335599
commit
e8934a113c
|
@ -8,14 +8,22 @@ runs:
|
|||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/cache@v2
|
||||
name: Cache Typescript node_modules
|
||||
id: cache-typescript
|
||||
id: cache-typescript-node-modules
|
||||
with:
|
||||
path: |
|
||||
./ts/node_modules
|
||||
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: cd ts && yarn && yarn build && yarn link && cd ../
|
||||
./ts/node_modules/
|
||||
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/yarn.lock') }}
|
||||
- uses: actions/cache@v2
|
||||
name: Cache Typescript Dist
|
||||
id: cache-typescript-dist
|
||||
with:
|
||||
path: |
|
||||
./ts/dist/
|
||||
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/*.ts') }}
|
||||
- run: cd ts && yarn && yarn build:node && yarn link && cd ../
|
||||
shell: bash
|
||||
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn && cd ../../
|
||||
shell: bash
|
||||
- run: cd tests && yarn link @project-serum/anchor && yarn && cd ..
|
||||
shell: bash
|
||||
|
||||
|
|
|
@ -7,5 +7,5 @@ runs:
|
|||
shell: bash
|
||||
- run: echo "ANCHOR_VERSION=$(cat ./VERSION)" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
- run: git submodule update --init --recursive
|
||||
- run: git submodule update --init --recursive --depth 1
|
||||
shell: bash
|
||||
|
|
|
@ -30,7 +30,7 @@ main() {
|
|||
#
|
||||
# Bootup validator.
|
||||
#
|
||||
solana-test-validator \
|
||||
solana-test-validator -r \
|
||||
--bpf-program $composite_pid ../../tests/composite/target/deploy/composite.so \
|
||||
--bpf-program $basic_2_pid ../../examples/tutorial/basic-2/target/deploy/basic_2.so \
|
||||
--bpf-program $basic_4_pid ../../examples/tutorial/basic-4/target/deploy/basic_4.so \
|
||||
|
|
Loading…
Reference in New Issue