Skip to content

Commit

Permalink
Fixed releaser ci 3 (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
markopoloparadox authored Mar 26, 2024
1 parent 2fc22db commit 2a0f05f
Showing 1 changed file with 13 additions and 185 deletions.
198 changes: 13 additions & 185 deletions .github/workflows/releaser_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,167 +32,30 @@ jobs:
name: avail-runtime-compressed-wasm
path: target/release/wbuild/da-runtime/avail-node-runtime.compact.compressed.wasm

x86_64_linux_ubuntu_2004:
runs-on: ubuntu-latest
x86_64_ubuntu_2004:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=ubuntu-2004 ZIP=1 ./scripts/binaries/build.sh
- name: install cargo deps and build avail
shell: bash
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env" && rustup show && cargo build --locked --release
pushd target/release
tar -czf x86_64-ubuntu-2004-avail-node.tar.gz avail-node
popd
- uses: actions/upload-artifact@v2
with:
name: x86_64-ubuntu-2004-avail-node.tar.gz
path: output/zips/x86_64-ubuntu-2004-avail-node.tar.gz

x86_64_linux_ubuntu_2204:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=ubuntu-2204 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-ubuntu-2204-avail-node.tar.gz
path: output/zips/x86_64-ubuntu-2204-avail-node.tar.gz

x86_64_linux_ubuntu_2310:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=ubuntu-2310 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-ubuntu-2310-avail-node.tar.gz
path: output/zips/x86_64-ubuntu-2310-avail-node.tar.gz

x86_64_linux_fedora_38:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=fedora-38 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-fedora-38-avail-node.tar.gz
path: output/zips/x86_64-fedora-38-avail-node.tar.gz

x86_64_linux_fedora_39:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=fedora-39 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-fedora-39-avail-node.tar.gz
path: output/zips/x86_64-fedora-39-avail-node.tar.gz

x86_64_linux_debian_11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=debian-11 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-debian-11-avail-node.tar.gz
path: output/zips/x86_64-debian-11-avail-node.tar.gz

x86_64_linux_debian_12:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=debian-12 ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-debian-12-avail-node.tar.gz
path: output/zips/x86_64-debian-12-avail-node.tar.gz

x86_64_linux_arch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'

- name: install podman
run: sudo apt-get update && sudo apt install podman -y

- name: build docker image and build avail binary
run: ENGINE=podman DISTRO=arch ZIP=1 ./scripts/binaries/build.sh

- uses: actions/upload-artifact@v2
with:
name: x86_64-arch-avail-node.tar.gz
path: output/zips/x86_64-arch-avail-node.tar.gz
path: target/release/x86_64-ubuntu-2004-avail-node.tar.gz

arm64_linux_arch:
arm64_ubuntu_2004:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -221,7 +84,7 @@ jobs:

# compile all binaries from previous jobs into single release
binary_publish:
needs: [x86_64_linux_ubuntu_2004, x86_64_linux_ubuntu_2204, x86_64_linux_ubuntu_2310, x86_64_linux_fedora_38, x86_64_linux_fedora_39, x86_64_linux_debian_11, x86_64_linux_debian_12, x86_64_linux_arch, arm64_linux_arch, build_wasm]
needs: [x86_64_ubuntu_2004, arm64_ubuntu_2004, build_wasm]
runs-on: ubuntu-latest
steps:
- name: Create Artifact Directory
Expand All @@ -232,41 +95,6 @@ jobs:
name: x86_64-ubuntu-2004-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-ubuntu-2204-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-ubuntu-2310-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-fedora-39-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-fedora-39-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-debian-11-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-debian-12-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: x86_64-arch-avail-node.tar.gz
path: ./artifact

- uses: actions/download-artifact@v3
with:
name: arm64-ubuntu-2004-avail-node.tar.gz
Expand Down

3 comments on commit 2a0f05f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 2a0f05f Previous: 33f7951 Ratio
commitment_builder/64 4055374747 ns/iter (± 11079179) 4343451680 ns/iter (± 92231152) 0.93
commitment_builder/128 4410804960 ns/iter (± 24368173) 4647446215 ns/iter (± 137494514) 0.95
commitment_builder/256 2180918220 ns/iter (± 35462548) 2367397557 ns/iter (± 42776582) 0.92

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 2a0f05f Previous: 909af7f Ratio
commitment_builder_64 Instructions 41959126985 ops (± 0) 41972869826 ops (± 0) 1.00
commitment_builder_64 L1 Accesses 51409196530 ops (± 0) 51407870438 ops (± 0) 1.00
commitment_builder_64 L2 Accesses 901488 ops (± 0) 893120 ops (± 0) 1.01
commitment_builder_64 RAM Accesses 166992 ops (± 0) 191298 ops (± 0) 0.87
commitment_builder_64 Estimated Cycles 51419548690 ops (± 0) 51419031468 ops (± 0) 1.00
commitment_builder_128 Instructions 54189841841 ops (± 0) 54204175550 ops (± 0) 1.00
commitment_builder_128 L1 Accesses 68303181231 ops (± 0) 68301951624 ops (± 0) 1.00
commitment_builder_128 L2 Accesses 1226335 ops (± 0) 1258510 ops (± 0) 0.97
commitment_builder_128 RAM Accesses 279071 ops (± 0) 242507 ops (± 0) 1.15
commitment_builder_128 Estimated Cycles 68319080391 ops (± 0) 68316731919 ops (± 0) 1.00
commitment_builder_256 Instructions 31749374494 ops (± 0) 31758548180 ops (± 0) 1.00
commitment_builder_256 L1 Accesses 40828348549 ops (± 0) 40833274463 ops (± 0) 1.00
commitment_builder_256 L2 Accesses 6702153 ops (± 0) 6788005 ops (± 0) 0.99
commitment_builder_256 RAM Accesses 272681 ops (± 0) 239352 ops (± 0) 1.14
commitment_builder_256 Estimated Cycles 40871403149 ops (± 0) 40875591808 ops (± 0) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.15.

Benchmark suite Current: 2a0f05f Previous: 909af7f Ratio
commitment_builder_128 RAM Accesses 279071 ops (± 0) 242507 ops (± 0) 1.15

This comment was automatically generated by workflow using github-action-benchmark.

CC: @prabal-banerjee @jakubcech @vthunder @kroos47 @Leouarz @markopoloparadox

Please sign in to comment.