Skip to content

Commit

Permalink
ci: Upgrade artifact actions to v4 (#3499)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Jan 19, 2025
1 parent 6ea564c commit 806f214
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/reusable-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
if: env.CARGO_PROFILE != 'debug'

- run: chmod +x ~/.cargo/bin/anchor
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/anchor
Expand All @@ -102,7 +102,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
Expand Down Expand Up @@ -179,14 +179,14 @@ jobs:
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-solana/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
- run: chmod +rwx ~/.cargo/bin/anchor

- run: cd ${{ matrix.node.path }} && anchor build --skip-lint
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.node.name }}
path: ${{ matrix.node.path }}target/deploy/${{ matrix.node.name }}
Expand All @@ -202,29 +202,29 @@ jobs:
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-ts/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
- run: chmod +x ~/.cargo/bin/anchor

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: optional.so
path: tests/optional/target/deploy/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: events.so
path: tests/events/target/deploy/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: basic_4.so
path: examples/tutorial/basic-4/target/deploy/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: basic_2.so
path: examples/tutorial/basic-2/target/deploy/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: composite.so
path: tests/composite/target/deploy/
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
path: ${{ env.CARGO_CACHE_PATH }}
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
# shell: bash
# - run: solana config set --url localhost
# shell: bash
# - uses: actions/download-artifact@v3
# - uses: actions/download-artifact@v4
# with:
# name: ${{ env.ANCHOR_BINARY_NAME }}
# path: ~/.cargo/bin/
Expand Down Expand Up @@ -355,7 +355,7 @@ jobs:
path: ${{ env.CARGO_CACHE_PATH }}
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:
path: ${{ env.CARGO_CACHE_PATH }}
key: cargo-${{ runner.os }}-${{ env.CARGO_PROFILE }}-anchor-${{ hashFiles('**/Cargo.lock') }}

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.ANCHOR_BINARY_NAME }}
path: ~/.cargo/bin/
Expand Down

0 comments on commit 806f214

Please sign in to comment.