diff --git a/.github/workflows/fuzz-nightly.yml b/.github/workflows/fuzz-nightly.yml index 43d6a6c4883..639c58b0407 100644 --- a/.github/workflows/fuzz-nightly.yml +++ b/.github/workflows/fuzz-nightly.yml @@ -12,7 +12,7 @@ jobs: fuzz_target: [token-swap-instructions] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -21,13 +21,11 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry @@ -35,14 +33,14 @@ jobs: target key: cargo-fuzz-${{ hashFiles('**/Cargo.lock') }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/cargo-hfuzz ~/.cargo/bin/cargo-honggfuzz key: cargo-fuzz-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-account-compression.yml b/.github/workflows/pull-request-account-compression.yml index b91a0b65a6a..5643c0e18b9 100644 --- a/.github/workflows/pull-request-account-compression.yml +++ b/.github/workflows/pull-request-account-compression.yml @@ -21,7 +21,7 @@ jobs: anchor-build-account-compression: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -32,26 +32,24 @@ jobs: source ci/install-anchor.sh echo "ANCHOR_CLI_VERSION=$anchor_cli_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -66,7 +64,7 @@ jobs: run: ./ci/cargo-test-sbf.sh account-compression - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: account-compression-programs path: "account-compression/target/deploy/*.so" @@ -78,19 +76,19 @@ jobs: NODE_VERSION: 16.x needs: anchor-build-account-compression steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/yarn key: node-${{ hashFiles('account-compression/sdk/yarn.lock') }} restore-keys: | node- - name: Download programs - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: account-compression-programs path: account-compression/target/deploy diff --git a/.github/workflows/pull-request-binary-oracle-pair.yml b/.github/workflows/pull-request-binary-oracle-pair.yml index 3794607ace9..6c8e4e32bbd 100644 --- a/.github/workflows/pull-request-binary-oracle-pair.yml +++ b/.github/workflows/pull-request-binary-oracle-pair.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-docs.yml b/.github/workflows/pull-request-docs.yml index 4bae66ab877..6595a8f5b82 100644 --- a/.github/workflows/pull-request-docs.yml +++ b/.github/workflows/pull-request-docs.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -49,8 +49,8 @@ jobs: build_docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '18' - name: "Build Docs" diff --git a/.github/workflows/pull-request-examples.yml b/.github/workflows/pull-request-examples.yml index 3f7e06b26e2..24958642145 100644 --- a/.github/workflows/pull-request-examples.yml +++ b/.github/workflows/pull-request-examples.yml @@ -15,7 +15,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -24,26 +24,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-feature-gate.yml b/.github/workflows/pull-request-feature-gate.yml index dbe807348aa..8ee4a04f9e1 100644 --- a/.github/workflows/pull-request-feature-gate.yml +++ b/.github/workflows/pull-request-feature-gate.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-feature-proposal.yml b/.github/workflows/pull-request-feature-proposal.yml index f401d99892e..438bc96b0fe 100644 --- a/.github/workflows/pull-request-feature-proposal.yml +++ b/.github/workflows/pull-request-feature-proposal.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-governance.yml b/.github/workflows/pull-request-governance.yml index 3823bd59d34..709c3aba91c 100644 --- a/.github/workflows/pull-request-governance.yml +++ b/.github/workflows/pull-request-governance.yml @@ -27,7 +27,7 @@ jobs: sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -36,26 +36,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-instruction-padding.yml b/.github/workflows/pull-request-instruction-padding.yml index 355260469c8..0e20f66c7bf 100644 --- a/.github/workflows/pull-request-instruction-padding.yml +++ b/.github/workflows/pull-request-instruction-padding.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-js.yml b/.github/workflows/pull-request-js.yml index ed747a7e16f..67249106d35 100644 --- a/.github/workflows/pull-request-js.yml +++ b/.github/workflows/pull-request-js.yml @@ -37,15 +37,15 @@ jobs: env: NODE_VERSION: 20.5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-libraries.yml b/.github/workflows/pull-request-libraries.yml index 53226ba3c64..4093d330b64 100644 --- a/.github/workflows/pull-request-libraries.yml +++ b/.github/workflows/pull-request-libraries.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -64,15 +62,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-memo.yml b/.github/workflows/pull-request-memo.yml index 78c0d62bf15..e03bda82103 100644 --- a/.github/workflows/pull-request-memo.yml +++ b/.github/workflows/pull-request-memo.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -64,15 +62,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-name-service.yml b/.github/workflows/pull-request-name-service.yml index f3d2ce06f9c..2ca423c7d65 100644 --- a/.github/workflows/pull-request-name-service.yml +++ b/.github/workflows/pull-request-name-service.yml @@ -17,7 +17,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -26,26 +26,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -60,7 +58,7 @@ jobs: run: ./ci/cargo-test-sbf.sh name-service - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: name-service-programs path: "target/deploy/*.so" @@ -71,15 +69,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-record.yml b/.github/workflows/pull-request-record.yml index fe4e76e31c1..b8cd078fdeb 100644 --- a/.github/workflows/pull-request-record.yml +++ b/.github/workflows/pull-request-record.yml @@ -15,7 +15,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -24,26 +24,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-shared-memory.yml b/.github/workflows/pull-request-shared-memory.yml index 6000ec91919..5bedc3ea52f 100644 --- a/.github/workflows/pull-request-shared-memory.yml +++ b/.github/workflows/pull-request-shared-memory.yml @@ -15,7 +15,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -24,26 +24,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-single-pool.yml b/.github/workflows/pull-request-single-pool.yml index c1ab2f6a398..6b2827b71fb 100644 --- a/.github/workflows/pull-request-single-pool.yml +++ b/.github/workflows/pull-request-single-pool.yml @@ -23,7 +23,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -32,26 +32,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -66,7 +64,7 @@ jobs: run: ./ci/cargo-test-sbf.sh single-pool/program - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: single-pool-programs path: "target/deploy/*.so" @@ -75,7 +73,7 @@ jobs: cargo-build-test-cli: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -84,20 +82,18 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -122,15 +118,15 @@ jobs: env: NODE_VERSION: 20.5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-stake-pool.yml b/.github/workflows/pull-request-stake-pool.yml index a912b5b338f..7802eacdd21 100644 --- a/.github/workflows/pull-request-stake-pool.yml +++ b/.github/workflows/pull-request-stake-pool.yml @@ -23,7 +23,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check disk space run: df -h @@ -41,26 +41,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -75,7 +73,7 @@ jobs: run: ./ci/cargo-test-sbf.sh stake-pool - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: stake-pool-programs path: "target/deploy/*.so" @@ -86,15 +84,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} @@ -106,20 +104,20 @@ jobs: runs-on: ubuntu-latest needs: cargo-test-sbf steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Python version uses: actions/setup-python@v2 with: python-version: 3.8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/pip key: pip-stake-pool-${{ hashFiles('stake-pool/py/requirements.txt') }} - name: Download programs - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: stake-pool-programs path: target/deploy diff --git a/.github/workflows/pull-request-token-collection.yml b/.github/workflows/pull-request-token-collection.yml index 6e305446c72..9f10bc8c150 100644 --- a/.github/workflows/pull-request-token-collection.yml +++ b/.github/workflows/pull-request-token-collection.yml @@ -23,7 +23,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -32,26 +32,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-token-group.yml b/.github/workflows/pull-request-token-group.yml index fce03fe5d22..990b93050de 100644 --- a/.github/workflows/pull-request-token-group.yml +++ b/.github/workflows/pull-request-token-group.yml @@ -19,7 +19,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -28,26 +28,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-token-lending.yml b/.github/workflows/pull-request-token-lending.yml index dd04417215e..5a317465d15 100644 --- a/.github/workflows/pull-request-token-lending.yml +++ b/.github/workflows/pull-request-token-lending.yml @@ -19,7 +19,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -28,26 +28,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -62,7 +60,7 @@ jobs: run: ./ci/cargo-test-sbf.sh token-lending - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: token-lending-programs path: "target/deploy/*.so" @@ -73,15 +71,15 @@ jobs: env: NODE_VERSION: 18.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-token-metadata.yml b/.github/workflows/pull-request-token-metadata.yml index ef91340a585..6daf2073b99 100644 --- a/.github/workflows/pull-request-token-metadata.yml +++ b/.github/workflows/pull-request-token-metadata.yml @@ -21,7 +21,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -30,26 +30,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -75,15 +73,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} diff --git a/.github/workflows/pull-request-token-swap.yml b/.github/workflows/pull-request-token-swap.yml index f2149696bce..264b88fd128 100644 --- a/.github/workflows/pull-request-token-swap.yml +++ b/.github/workflows/pull-request-token-swap.yml @@ -21,7 +21,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -30,26 +30,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -77,7 +75,7 @@ jobs: mv target/deploy-production/spl_token_swap.so target/deploy/spl_token_swap_production.so - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: token-swap-programs path: "target/deploy/*.so" @@ -88,15 +86,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} @@ -107,7 +105,7 @@ jobs: fuzz: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -116,27 +114,25 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: token-swap-fuzz-${{ hashFiles('**/Cargo.lock') }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/cargo-hfuzz ~/.cargo/bin/cargo-honggfuzz key: cargo-fuzz-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cache diff --git a/.github/workflows/pull-request-token-upgrade.yml b/.github/workflows/pull-request-token-upgrade.yml index f1b321a4d17..3af9ca8274d 100644 --- a/.github/workflows/pull-request-token-upgrade.yml +++ b/.github/workflows/pull-request-token-upgrade.yml @@ -19,7 +19,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -28,26 +28,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -64,7 +62,7 @@ jobs: cargo-build-test-cli: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -73,20 +71,18 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/pull-request-token.yml b/.github/workflows/pull-request-token.yml index 325f7861e41..c8544791f80 100644 --- a/.github/workflows/pull-request-token.yml +++ b/.github/workflows/pull-request-token.yml @@ -21,7 +21,7 @@ jobs: cargo-test-sbf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Remove unneeded packages for more space run: bash ./ci/warning/purge-ubuntu-runner.sh @@ -33,26 +33,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -67,7 +65,7 @@ jobs: run: ./ci/cargo-test-sbf.sh token - name: Upload programs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: token-programs path: "target/deploy/*.so" @@ -76,7 +74,7 @@ jobs: cargo-test-token-2022-serde: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -85,13 +83,11 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry @@ -108,7 +104,7 @@ jobs: cargo-test-sbf-transfer-hook: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -117,26 +113,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -151,7 +145,7 @@ jobs: run: ./ci/cargo-test-sbf.sh token/transfer-hook/example - name: Upload program - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: spl-transfer-hook-example path: "target/deploy/*.so" @@ -160,7 +154,7 @@ jobs: cargo-test-sbf-associated-token-account: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -169,26 +163,24 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -203,7 +195,7 @@ jobs: run: ./ci/cargo-test-sbf.sh associated-token-account - name: Upload program - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: associated-token-account-program path: "target/deploy/*.so" @@ -212,7 +204,7 @@ jobs: cargo-test-sbf-twoxtx: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Remove unneeded packages for more space run: bash ./ci/warning/purge-ubuntu-runner.sh @@ -225,13 +217,11 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE_VERSION }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry @@ -256,15 +246,15 @@ jobs: env: NODE_VERSION: 16.x steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - uses: pnpm/action-setup@v2 with: version: 8 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.npm key: node-${{ hashFiles('pnpm-lock.yaml') }} @@ -275,7 +265,7 @@ jobs: cargo-build-test-cli: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -284,20 +274,18 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -317,7 +305,7 @@ jobs: runs-on: ubuntu-latest needs: [cargo-test-sbf] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | @@ -326,20 +314,18 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} @@ -351,7 +337,7 @@ jobs: echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH - name: Download spl-transfer-hook-example program - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: spl-transfer-hook-example path: target/deploy diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 20c15c72fc7..4326d8e135f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -23,44 +23,37 @@ jobs: rustfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | source ci/rust-version.sh echo "RUST_NIGHTLY=$rust_nightly" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_NIGHTLY }} - override: true - profile: minimal components: rustfmt - name: Run fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: ./cargo-nightly.sh fmt --all -- --check clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | source ci/rust-version.sh echo "RUST_NIGHTLY=$rust_nightly" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_NIGHTLY }} - override: true - profile: minimal components: clippy - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry @@ -74,32 +67,24 @@ jobs: run: ./ci/install-build-deps.sh - name: Run clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -Zunstable-options --workspace --all-targets --features test-sbf -- --deny=warnings --deny=clippy::arithmetic_side_effects + run: ./cargo-nightly.sh clippy -Zunstable-options --workspace --all-targets --features test-sbf -- --deny=warnings --deny=clippy::arithmetic_side_effects audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set env vars run: | source ci/rust-version.sh echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - name: Install Cargo Audit - uses: actions-rs/install@v0.1 - with: - crate: cargo-audit - version: 0.17.6 + run: cargo install cargo-audit --version 0.17.6 - name: Run Cargo Audit run: ./ci/do-audit.sh @@ -107,7 +92,7 @@ jobs: cargo-build-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Remove unneeded packages for more space run: bash ./ci/warning/purge-ubuntu-runner.sh @@ -119,13 +104,11 @@ jobs: source ci/solana-version.sh echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.RUST_STABLE }} - override: true - profile: minimal - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/registry @@ -133,13 +116,13 @@ jobs: # target # Removed due to build dependency caching conflicts key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/.cargo/bin/rustfilt key: cargo-sbf-bins-${{ runner.os }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/solana key: solana-${{ env.SOLANA_VERSION }} diff --git a/.github/workflows/spl_action.yml b/.github/workflows/spl_action.yml index fbff6275fe3..9cb2f7464d0 100644 --- a/.github/workflows/spl_action.yml +++ b/.github/workflows/spl_action.yml @@ -10,9 +10,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: "importing all the document" - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: '16' name: "installing the node.js with version 16"