Skip to content

Commit

Permalink
Problem: github workflows out of date (backport #1108) (#1110)
Browse files Browse the repository at this point in the history
* Problem: github workflows out of date (backport #1108)

Solution:
- update upload-artifact to v4

* fix hermes build

* Revert "fix hermes build"

This reverts commit 5dac4e5.

* ibc-rs -> hermes
  • Loading branch information
yihuang authored Feb 4, 2025
1 parent ebfb62d commit 12cab72
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
echo ${{ job.status }} > status_build.txt
- name: Upload file status_build.txt as an artifact
if: github.event_name == 'issue_comment'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pass_status_build
path: status_build.txt
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Run build
run: ./scripts/release.sh
if: steps.changed-files.outputs.any_changed == 'true'
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: "chain-maind-tarball-${{ matrix.os }}"
path: "*.tar.gz"
Expand All @@ -193,7 +193,7 @@ jobs:
echo ${{ job.status }} > status_install.txt
- name: Upload file status_install.txt as an artifact
if: github.event_name == 'issue_comment'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pass_status_install
path: status_install.txt
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
echo ${{ job.status }} > status_sim1.txt
- name: Upload file status_sim1.txt as an artifact
if: github.event_name == 'issue_comment'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pass_status_sim1
path: status_sim1.txt
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
echo ${{ job.status }} > status_sim2.txt
- name: Upload file status_sim2.txt as an artifact
if: github.event_name == 'issue_comment'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pass_status_sim2
path: status_sim2.txt
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
echo ${{ job.status }} > status_sim3.txt
- name: Upload file status_sim3.txt as an artifact
if: github.event_name == 'issue_comment'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pass_status_sim3
path: status_sim3.txt
Expand Down Expand Up @@ -443,7 +443,7 @@ jobs:
set +e
(git diff --no-ext-diff --exit-code)
echo "changed=$?" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: steps.changes.outputs.changed == 1
with:
name: gomod2nix.toml
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files.tar.gz -C "$TMPDIR/pytest-of-runner" .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_upgrade.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_upgrade
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_ledger.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_ledger
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_solomachine.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_solomachine
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_slow.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_slow
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_ibc.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_ibc
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_byzantine.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_byzantine
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_gov.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_gov
Expand Down Expand Up @@ -387,7 +387,7 @@ jobs:
- name: Tar debug files
if: failure()
run: tar cfz debug_files_grpc.tar.gz -C /tmp/pytest-of-runner .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: debug_files_grpc
Expand Down
2 changes: 1 addition & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import sources.nixpkgs {
vendorSha256 = "sha256-OAXWrwpartjgSP7oeNvDJ7cTR9lyYVNhEM8HUnv3acE=";
doCheck = false;
};
hermes = pkgs.callPackage ./hermes.nix { src = sources.ibc-rs; };
hermes = pkgs.callPackage ./hermes.nix { src = sources.hermes; };
})
(import "${sources.gomod2nix}/overlay.nix")
(import ./build_overlay.nix)
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
"url": "https://github.com/nix-community/gomod2nix/archive/3cbf3a51fe32e2f57af4c52744e7228bab22983d.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"ibc-rs": {
"hermes": {
"branch": "v1.1.0",
"description": "IBC modules and relayer - Formal specifications and Rust implementation",
"homepage": "",
"owner": "informalsystems",
"repo": "ibc-rs",
"repo": "hermes",
"rev": "0daa3e16431e748c96a3fa4ad5e9698074e09060",
"sha256": "1fp4hz390fd4nlkrkzdmypy9i83i57l21hg7l0d9xi8h1hjginam",
"type": "tarball",
"url": "https://github.com/informalsystems/ibc-rs/archive/0daa3e16431e748c96a3fa4ad5e9698074e09060.tar.gz",
"url": "https://github.com/informalsystems/hermes/archive/0daa3e16431e748c96a3fa4ad5e9698074e09060.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
Expand Down

0 comments on commit 12cab72

Please sign in to comment.