|
@@ -18,12 +18,12 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- - uses: actions/setup-node@v2
|
|
|
|
|
|
+ - uses: actions/setup-node@v3
|
|
with:
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache Cargo registry + index
|
|
name: Cache Cargo registry + index
|
|
id: cache-cargo-build
|
|
id: cache-cargo-build
|
|
with:
|
|
with:
|
|
@@ -54,10 +54,10 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache Cargo registry + index
|
|
name: Cache Cargo registry + index
|
|
id: cache-anchor
|
|
id: cache-anchor
|
|
with:
|
|
with:
|
|
@@ -73,7 +73,7 @@ jobs:
|
|
- run: cargo install --path cli anchor-cli --locked --force
|
|
- run: cargo install --path cli anchor-cli --locked --force
|
|
if: env.CARGO_PROFILE != 'debug'
|
|
if: env.CARGO_PROFILE != 'debug'
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
- - uses: actions/upload-artifact@v2
|
|
|
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/anchor
|
|
path: ~/.cargo/bin/anchor
|
|
@@ -86,8 +86,8 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
@@ -96,31 +96,31 @@ jobs:
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: basic-0 cache
|
|
name: basic-0 cache
|
|
id: cache-basic-0
|
|
id: cache-basic-0
|
|
with:
|
|
with:
|
|
path: ./examples/tutorial/basic-0/target
|
|
path: ./examples/tutorial/basic-0/target
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-0/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-0/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: basic-1 cache
|
|
name: basic-1 cache
|
|
id: cache-basic-1
|
|
id: cache-basic-1
|
|
with:
|
|
with:
|
|
path: ./examples/tutorial/basic-1/target
|
|
path: ./examples/tutorial/basic-1/target
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-1/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-1/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: basic-2 cache
|
|
name: basic-2 cache
|
|
id: cache-basic-2
|
|
id: cache-basic-2
|
|
with:
|
|
with:
|
|
path: ./examples/tutorial/basic-2/target
|
|
path: ./examples/tutorial/basic-2/target
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-2/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-2/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: basic-3 cache
|
|
name: basic-3 cache
|
|
id: cache-basic-3
|
|
id: cache-basic-3
|
|
with:
|
|
with:
|
|
path: ./examples/tutorial/basic-3/target
|
|
path: ./examples/tutorial/basic-3/target
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-3/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-3/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: basic-4 cache
|
|
name: basic-4 cache
|
|
id: cache-basic-4
|
|
id: cache-basic-4
|
|
with:
|
|
with:
|
|
@@ -147,18 +147,18 @@ jobs:
|
|
- path: tests/composite/
|
|
- path: tests/composite/
|
|
name: composite.so
|
|
name: composite.so
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-solana/
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
- run: chmod +rwx ~/.cargo/bin/anchor
|
|
- run: chmod +rwx ~/.cargo/bin/anchor
|
|
|
|
|
|
- run: cd ${{ matrix.node.path }} && anchor build --skip-lint
|
|
- run: cd ${{ matrix.node.path }} && anchor build --skip-lint
|
|
- - uses: actions/upload-artifact@v2
|
|
|
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
name: ${{ matrix.node.name }}
|
|
name: ${{ matrix.node.name }}
|
|
path: ${{ matrix.node.path }}target/deploy/${{ matrix.node.name }}
|
|
path: ${{ matrix.node.path }}target/deploy/${{ matrix.node.name }}
|
|
@@ -170,33 +170,33 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-ts/
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: events.so
|
|
name: events.so
|
|
path: tests/events/target/deploy/
|
|
path: tests/events/target/deploy/
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: basic_4.so
|
|
name: basic_4.so
|
|
path: examples/tutorial/basic-4/target/deploy/
|
|
path: examples/tutorial/basic-4/target/deploy/
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: basic_2.so
|
|
name: basic_2.so
|
|
path: examples/tutorial/basic-2/target/deploy/
|
|
path: examples/tutorial/basic-2/target/deploy/
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: composite.so
|
|
name: composite.so
|
|
path: tests/composite/target/deploy/
|
|
path: tests/composite/target/deploy/
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache client/example target
|
|
name: Cache client/example target
|
|
id: cache-test-target
|
|
id: cache-test-target
|
|
with:
|
|
with:
|
|
@@ -212,12 +212,12 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-solana/
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache Cargo registry + index
|
|
name: Cache Cargo registry + index
|
|
id: cache-anchor
|
|
id: cache-anchor
|
|
with:
|
|
with:
|
|
@@ -229,13 +229,13 @@ jobs:
|
|
./target/
|
|
./target/
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache tests/bpf-upgradeable-state target
|
|
name: Cache tests/bpf-upgradeable-state target
|
|
id: cache-test-target
|
|
id: cache-test-target
|
|
with:
|
|
with:
|
|
@@ -263,10 +263,10 @@ jobs:
|
|
# runs-on: ubuntu-latest
|
|
# runs-on: ubuntu-latest
|
|
# timeout-minutes: 30
|
|
# timeout-minutes: 30
|
|
# steps:
|
|
# steps:
|
|
- # - uses: actions/checkout@v2
|
|
|
|
|
|
+ # - uses: actions/checkout@v3
|
|
# - uses: ./.github/actions/setup/
|
|
# - uses: ./.github/actions/setup/
|
|
# - uses: ./.github/actions/setup-ts/
|
|
# - uses: ./.github/actions/setup-ts/
|
|
- # - uses: actions/cache@v2
|
|
|
|
|
|
+ # - uses: actions/cache@v3
|
|
# name: Cache Solana Tool Suite
|
|
# name: Cache Solana Tool Suite
|
|
# id: cache-solana
|
|
# id: cache-solana
|
|
# with:
|
|
# with:
|
|
@@ -285,13 +285,13 @@ jobs:
|
|
# shell: bash
|
|
# shell: bash
|
|
# - run: solana config set --url localhost
|
|
# - run: solana config set --url localhost
|
|
# shell: bash
|
|
# shell: bash
|
|
- # - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ # - uses: actions/download-artifact@v3
|
|
# with:
|
|
# with:
|
|
# name: anchor-binary
|
|
# name: anchor-binary
|
|
# path: ~/.cargo/bin/
|
|
# path: ~/.cargo/bin/
|
|
# - run: chmod +x ~/.cargo/bin/anchor
|
|
# - run: chmod +x ~/.cargo/bin/anchor
|
|
|
|
|
|
- # - uses: actions/cache@v2
|
|
|
|
|
|
+ # - uses: actions/cache@v3
|
|
# name: Cache tests/misc target
|
|
# name: Cache tests/misc target
|
|
# id: cache-test-target
|
|
# id: cache-test-target
|
|
# with:
|
|
# with:
|
|
@@ -309,12 +309,12 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
timeout-minutes: 30
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-solana/
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache Cargo registry + index
|
|
name: Cache Cargo registry + index
|
|
id: cache-anchor
|
|
id: cache-anchor
|
|
with:
|
|
with:
|
|
@@ -326,7 +326,7 @@ jobs:
|
|
./target/
|
|
./target/
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
@@ -407,12 +407,12 @@ jobs:
|
|
- cmd: cd tests/anchor-cli-idl && ./test.sh
|
|
- cmd: cd tests/anchor-cli-idl && ./test.sh
|
|
path: tests/anchor-cli-idl
|
|
path: tests/anchor-cli-idl
|
|
steps:
|
|
steps:
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-ts/
|
|
- uses: ./.github/actions/setup-solana/
|
|
- uses: ./.github/actions/setup-solana/
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache Cargo registry + index
|
|
name: Cache Cargo registry + index
|
|
id: cache-anchor
|
|
id: cache-anchor
|
|
with:
|
|
with:
|
|
@@ -424,13 +424,13 @@ jobs:
|
|
./target/
|
|
./target/
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
|
- - uses: actions/download-artifact@v2
|
|
|
|
|
|
+ - uses: actions/download-artifact@v3
|
|
with:
|
|
with:
|
|
name: anchor-binary
|
|
name: anchor-binary
|
|
path: ~/.cargo/bin/
|
|
path: ~/.cargo/bin/
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
- run: chmod +x ~/.cargo/bin/anchor
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
|
|
|
+ - uses: actions/cache@v3
|
|
name: Cache ${{ matrix.node.path }} target
|
|
name: Cache ${{ matrix.node.path }} target
|
|
id: cache-test-target
|
|
id: cache-test-target
|
|
with:
|
|
with:
|