ci: Improvements (#1074)

This commit is contained in:
Paul 2021-11-28 20:10:39 +01:00 committed by GitHub
parent 5e8d335599
commit e8934a113c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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 \