Skip to content

Commit

Permalink
Bump actions version (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aursen authored Nov 25, 2022
1 parent 19e00e5 commit ca7c3f0
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 104 deletions.
32 changes: 16 additions & 16 deletions .github/actions/setup-solana/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ description: "Setup Solana"
runs:
using: "composite"
steps:
- uses: actions/cache@v2
name: Cache Solana Tool Suite
id: cache-solana
with:
path: |
~/.cache/solana/
~/.local/share/solana/
key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }}
- run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
shell: bash
- run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
shell: bash
- run: solana-keygen new --no-bip39-passphrase
shell: bash
- run: solana config set --url localhost
shell: bash
- uses: actions/cache@v3
name: Cache Solana Tool Suite
id: cache-solana
with:
path: |
~/.cache/solana/
~/.local/share/solana/
key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }}
- run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
shell: bash
- run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
shell: bash
- run: solana-keygen new --no-bip39-passphrase
shell: bash
- run: solana config set --url localhost
shell: bash
54 changes: 27 additions & 27 deletions .github/actions/setup-ts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@ description: "Setup ts"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
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@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/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
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn --frozen-lockfile && cd ../../
shell: bash
- run: cd tests && yarn link @project-serum/anchor && yarn link @project-serum/spl-associated-token-account && yarn link @project-serum/spl-token && yarn --frozen-lockfile && cd ..
shell: bash
- 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') }}
- 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
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn --frozen-lockfile && cd ../../
shell: bash
- run: cd tests && yarn link @project-serum/anchor && yarn link @project-serum/spl-associated-token-account && yarn link @project-serum/spl-token && yarn --frozen-lockfile && cd ..
shell: bash
46 changes: 23 additions & 23 deletions .github/workflows/no-cashing-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- run: cargo build
Expand All @@ -39,12 +39,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/

- run: cargo install --path cli anchor-cli --locked --force
- run: chmod +x ~/.cargo/bin/anchor
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/anchor
Expand All @@ -57,8 +57,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
Expand Down Expand Up @@ -88,18 +88,18 @@ jobs:
- path: tests/composite/
name: composite.so
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-solana/

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
- run: chmod +rwx ~/.cargo/bin/anchor

- run: cd ${{ matrix.node.path }} && anchor build --skip-lint
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.node.name }}
path: ${{ matrix.node.path }}target/deploy/${{ matrix.node.name }}
Expand All @@ -111,29 +111,29 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-ts/

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
- run: chmod +x ~/.cargo/bin/anchor

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: events.so
path: tests/events/target/deploy/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: basic_4.so
path: examples/tutorial/basic-4/target/deploy/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: basic_2.so
path: examples/tutorial/basic-2/target/deploy/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: composite.so
path: tests/composite/target/deploy/
Expand All @@ -147,12 +147,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-ts/
- uses: ./.github/actions/setup-solana/

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
Expand All @@ -179,7 +179,7 @@ jobs:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# - uses: ./.github/actions/setup/
# - uses: ./.github/actions/setup-ts/
# # using an outdated validator but that
Expand All @@ -193,7 +193,7 @@ jobs:
# shell: bash
# - run: solana config set --url localhost
# shell: bash
# - uses: actions/download-artifact@v2
# - uses: actions/download-artifact@v3
# with:
# name: anchor-binary-no-caching
# path: ~/.cargo/bin/
Expand All @@ -210,12 +210,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-ts/
- uses: ./.github/actions/setup-solana/

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
Expand Down Expand Up @@ -294,12 +294,12 @@ jobs:
- cmd: cd tests/anchor-cli-idl && ./test.sh
path: tests/anchor-cli-idl
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-ts/
- uses: ./.github/actions/setup-solana/

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: anchor-binary-no-caching
path: ~/.cargo/bin/
Expand Down
Loading

1 comment on commit ca7c3f0

@vercel
Copy link

@vercel vercel bot commented on ca7c3f0 Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-git-master-200ms.vercel.app
www.anchor-lang.com
anchor-docs-200ms.vercel.app
anchor-lang.com

Please sign in to comment.