Prevent arithmetic overflow panick when handling XCM (#328) #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hyperbridge Docker Publish | |
on: | |
push: | |
tags: | |
- "hyperbridge-v[0-9]+.[0-9]+.[0-9]+" | |
concurrency: | |
group: release-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_and_publish: | |
runs-on: release-runner | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
submodules: recursive | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: "${{ secrets.SSH_KEY }}" | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: stable | |
- name: Add wasm toolchain | |
run: | | |
sudo apt-get update | |
sudo apt-get install --assume-yes pkg-config git clang curl libssl-dev llvm libudev-dev make protobuf-compiler | |
rustup install nightly | |
rustup target add wasm32-unknown-unknown --toolchain nightly | |
rustup target add wasm32-unknown-unknown | |
rustup component add rust-src | |
sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler | |
- name: Build | |
run: | | |
cargo build --release -p hyperbridge | |
- name: Install Cargo get | |
run: cargo install cargo-get | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- name: Build the Docker image | |
run: docker build -t polytopelabs/hyperbridge:v$(cargo get package.version --entry ./parachain/node) -t polytopelabs/hyperbridge:latest -f ./scripts/docker/hyperbridge.Dockerfile . | |
- name: Docker Push | |
run: | | |
docker push polytopelabs/hyperbridge:v$(cargo get package.version --entry ./parachain/node) | |
docker push polytopelabs/hyperbridge:latest |