From 645f0d7841d059ae2f29d033fe99524717b5388f Mon Sep 17 00:00:00 2001 From: DeepakBomjan <44976635+DeepakBomjan@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:51:09 +0545 Subject: [PATCH] ci: update deprecated action version --- .../workflows/build-and-publish-cosmwasm.yml | 5 +- .../workflows/build-and-publish-javascore.yml | 4 +- .github/workflows/codecov-javascore.yml | 3 +- .../cosmwasm-contracts-code-coverage.yml | 3 +- .../workflows/deploy-cosmwasm-contracts.yml | 3 +- .github/workflows/java-contracts-test.yml | 2 +- .github/workflows/publish_maven.yml | 2 +- .github/workflows/release-tag-manager.yml | 2 +- .github/workflows/release.yml | 60 +++++++++---------- .github/workflows/solidity-contracts-test.yml | 2 +- .github/workflows/solidity-cov.yml | 2 +- .github/workflows/stellar-build-and-test.yml | 2 +- .github/workflows/sui-move-build-test.yml | 2 +- .../workflows/uat-deploy-java-contracts.yml | 2 +- 14 files changed, 45 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build-and-publish-cosmwasm.yml b/.github/workflows/build-and-publish-cosmwasm.yml index 9ec30d5cb..711b11989 100644 --- a/.github/workflows/build-and-publish-cosmwasm.yml +++ b/.github/workflows/build-and-publish-cosmwasm.yml @@ -9,14 +9,13 @@ on: paths: - contracts/cosmwasm-vm/** - libraries/common/rust/** - - .github/workflows/deploy-cosmwasm-contracts.yml jobs: Build: name: Build Cosmasm Contracts runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -25,7 +24,7 @@ jobs: bash ./scripts/optimize-cosmwasm.sh - name: Archive artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: cosmwasm-contracts path: artifacts diff --git a/.github/workflows/build-and-publish-javascore.yml b/.github/workflows/build-and-publish-javascore.yml index 981483709..7112876e4 100644 --- a/.github/workflows/build-and-publish-javascore.yml +++ b/.github/workflows/build-and-publish-javascore.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build Javascore working-directory: contracts/javascore @@ -21,7 +21,7 @@ jobs: ./gradlew zipOutputOptimizedJars - name: Archive artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: javascore-contracts path: ./contracts/javascore/build/javascore-contracts.zip diff --git a/.github/workflows/codecov-javascore.yml b/.github/workflows/codecov-javascore.yml index 57d93911e..0eb902a66 100644 --- a/.github/workflows/codecov-javascore.yml +++ b/.github/workflows/codecov-javascore.yml @@ -9,7 +9,6 @@ on: - main paths: - 'contracts/javascore/**' - - '.github/workflows/codecov-javascore.yml' env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} jobs: @@ -17,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Javascore contracts coverage diff --git a/.github/workflows/cosmwasm-contracts-code-coverage.yml b/.github/workflows/cosmwasm-contracts-code-coverage.yml index b2ffec9e4..52ccd0c4f 100644 --- a/.github/workflows/cosmwasm-contracts-code-coverage.yml +++ b/.github/workflows/cosmwasm-contracts-code-coverage.yml @@ -6,7 +6,6 @@ on: - "**" paths: - "contracts/cosmwasm-vm/**" - - ".github/workflows/cosmwasm-contracts-code-coverage.yml" push: branches: - main @@ -22,7 +21,7 @@ jobs: CARGO_TERM_COLOR: always steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/deploy-cosmwasm-contracts.yml b/.github/workflows/deploy-cosmwasm-contracts.yml index 7bc175408..3a8dee038 100644 --- a/.github/workflows/deploy-cosmwasm-contracts.yml +++ b/.github/workflows/deploy-cosmwasm-contracts.yml @@ -6,7 +6,6 @@ on: paths: - contracts/cosmwasm-vm/** - libraries/common/rust/** - - .github/workflows/deploy-cosmwasm-contracts.yml - scripts/optimize-cosmwasm.sh jobs: Build: @@ -14,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/java-contracts-test.yml b/.github/workflows/java-contracts-test.yml index a41d3a78d..ba0c31924 100644 --- a/.github/workflows/java-contracts-test.yml +++ b/.github/workflows/java-contracts-test.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/publish_maven.yml b/.github/workflows/publish_maven.yml index e92eab800..4514229d1 100644 --- a/.github/workflows/publish_maven.yml +++ b/.github/workflows/publish_maven.yml @@ -8,7 +8,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build jar working-directory: contracts/javascore run: ./gradlew clean build diff --git a/.github/workflows/release-tag-manager.yml b/.github/workflows/release-tag-manager.yml index f6179d068..0643265b2 100644 --- a/.github/workflows/release-tag-manager.yml +++ b/.github/workflows/release-tag-manager.yml @@ -18,7 +18,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: '0' token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ae8f7234..6c7422677 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -29,29 +29,29 @@ jobs: with: name: javascore-contracts path: ./contracts/javascore/build/javascore-contracts.zip - # build_wasm: - # name: Build Cosmwasm Contracts - # runs-on: ubuntu-latest - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # with: - # submodules: true + build_wasm: + name: Build Cosmwasm Contracts + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + submodules: true - # - name: Cache Rust dependencies - # uses: Swatinem/rust-cache@v2 - # - name: Compile WASM - # run: | - # # rustup component add rustfmt --toolchain 1.78.0-x86_64-unknown-linux-gnu - # # rustup component add clippy --toolchain 1.78.0-x86_64-unknown-linux-gnu - # bash ./scripts/optimize-cosmwasm.sh - # cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + - name: Compile WASM + run: | + # rustup component add rustfmt --toolchain 1.78.0-x86_64-unknown-linux-gnu + # rustup component add clippy --toolchain 1.78.0-x86_64-unknown-linux-gnu + bash ./scripts/optimize-cosmwasm.sh + cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j - # - name: Upload Artifacts - # uses: actions/upload-artifact@v4 - # with: - # name: cosmwasm-contracts - # path: cosmwasm-contracts.zip + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: cosmwasm-contracts + path: cosmwasm-contracts.zip build_solidity: name: Build Solidity Contracts runs-on: ubuntu-latest @@ -83,7 +83,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Install stable toolchain @@ -128,11 +128,11 @@ jobs: name: javascore-contracts path: javascore-contracts - # - name: Download Cosmwasm Artifacts - # uses: actions/download-artifact@v4 - # with: - # name: cosmwasm-contracts - # path: cosmwasm-contracts + - name: Download Cosmwasm Artifacts + uses: actions/download-artifact@v4 + with: + name: cosmwasm-contracts + path: cosmwasm-contracts - name: Download Solidity Artifacts uses: actions/download-artifact@v4 @@ -149,8 +149,8 @@ jobs: - name: Unzip Javascore Artifacts run: unzip javascore-contracts/javascore-contracts.zip -d javascore-contracts && rm -rf javascore-contracts/javascore-contracts.zip - # - name: Unzip Cosmwasm Artifacts - # run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip + - name: Unzip Cosmwasm Artifacts + run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip - name: Unzip Cosmwasm Artifacts run: unzip solidity-contracts/solidity-contracts.zip -d solidity-contracts && rm -rf solidity-contracts/solidity-contracts.zip diff --git a/.github/workflows/solidity-contracts-test.yml b/.github/workflows/solidity-contracts-test.yml index 481b9a942..c1e879d3e 100644 --- a/.github/workflows/solidity-contracts-test.yml +++ b/.github/workflows/solidity-contracts-test.yml @@ -26,7 +26,7 @@ jobs: name: xCall-Multi Solidity Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive diff --git a/.github/workflows/solidity-cov.yml b/.github/workflows/solidity-cov.yml index 446d28bce..e90622eff 100644 --- a/.github/workflows/solidity-cov.yml +++ b/.github/workflows/solidity-cov.yml @@ -25,7 +25,7 @@ jobs: CARGO_TERM_COLOR: always steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Install Foundry diff --git a/.github/workflows/stellar-build-and-test.yml b/.github/workflows/stellar-build-and-test.yml index 9c2cffe0e..978229f9d 100644 --- a/.github/workflows/stellar-build-and-test.yml +++ b/.github/workflows/stellar-build-and-test.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/sui-move-build-test.yml b/.github/workflows/sui-move-build-test.yml index 9fb9ae9f1..684e60401 100644 --- a/.github/workflows/sui-move-build-test.yml +++ b/.github/workflows/sui-move-build-test.yml @@ -17,7 +17,7 @@ jobs: REPO_OWNER: MystenLabs REPO_NAME: sui steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive diff --git a/.github/workflows/uat-deploy-java-contracts.yml b/.github/workflows/uat-deploy-java-contracts.yml index 679fc2cd5..77ebd9619 100644 --- a/.github/workflows/uat-deploy-java-contracts.yml +++ b/.github/workflows/uat-deploy-java-contracts.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Retrieve the secret and decode it to a file working-directory: contracts/javascore