Skip to content

Commit

Permalink
update few actions workflows to v4 (metaplex-foundation#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagaprasadvr authored Feb 3, 2025
1 parent 82ef80f commit 9575f8a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
workflow_dispatch:
push:
branches:
- 'main'
- "main"

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
build-api:
Expand All @@ -27,21 +27,21 @@ jobs:

steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
# This step can be omited, to save storage space on the organization account
# Build process will take longer
- name: set build cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
digital-asset-rpc-infrastructure/target/
key: ${{ matrix.os }}_digital-asset-rpc-infrastructure_${{ hashFiles('digital-asset-rpc-infrastructure/Cargo.lock') }}
restore-keys: |
${{ matrix.os }}_digital-asset-rpc-infrastructure
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
digital-asset-rpc-infrastructure/target/
key: ${{ matrix.os }}_digital-asset-rpc-infrastructure_${{ hashFiles('digital-asset-rpc-infrastructure/Cargo.lock') }}
restore-keys: |
${{ matrix.os }}_digital-asset-rpc-infrastructure
- name: build digital asset rpc infra
run: cargo build --verbose --release
Expand All @@ -54,60 +54,60 @@ jobs:
mv target/release/migration target/release/migration22
mv target/release/das_api target/release/das_api22
# This steps can be omited to save space, are mostly in place to validate binaries (manually) and path to them
# This steps can be omited to save space, are mostly in place to validate binaries (manually) and path to them
# Omiting this will save on storage consumption on the account
- name: Publish artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: nft_ingester22
path: target/release/nft_ingester22

- name: Publish artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: das_api22
path: target/release/das_api22

- name: Publish artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: migration22
path: target/release/migration22

- name: Publish artifact
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: fetch-trees22
path: target/release/fetch_trees22

- name: Publish artifact
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: nft_ingester
path: target/release/nft_ingester

- name: Publish artifact
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: das_api
path: target/release/das_api

- name: Publish artifact
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: migration
path: target/release/migration

- name: Publish artifact
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: fetch-trees
path: target/release/fetch_trees
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ on:
pull_request:
push:
branches:
- 'main'
- "main"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-22.04

steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: set build cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
digital-asset-rpc-infrastructure/target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}-0001
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
digital-asset-rpc-infrastructure/target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}-0001

# Cargo.lock
- name: Check lock file
Expand Down

0 comments on commit 9575f8a

Please sign in to comment.