-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rq/update-pallet_xcm_weight_trader-origin
- Loading branch information
Showing
101 changed files
with
7,519 additions
and
9,606 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build Production Binary | ||
description: | | ||
Builds production a moonbeam binary for a given CPU target | ||
inputs: | ||
target: | ||
description: The CPU target for the binary | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build production moonbeam | ||
shell: bash | ||
run: | | ||
# Build moonbeam | ||
# (we don't use volumes because of ownership/permissions issues) | ||
docker build \ | ||
--tag prod --no-cache \ | ||
--build-arg="COMMIT=${{ github.event.inputs.sha }}" \ | ||
--build-arg="RUSTFLAGS=-C target-cpu=${{ inputs.target }}" \ | ||
- < docker/moonbeam-production.Dockerfile | ||
# Copy moonbeam binary | ||
docker rm -f dummy 2> /dev/null | true | ||
docker create -ti --name dummy prod bash | ||
docker cp dummy:/moonbeam/moonbeam moonbeam | ||
docker rm -f dummy | ||
GLIBC_VERSION="$(objdump -T moonbeam | grep "GLIBC_" | sed 's/.*GLIBC_\([.0-9]*\).*/\1/g' | sort -Vu | tail -1)" | ||
if [[ $GLIBC_VERSION == "2.34" ]]; then | ||
echo "✅ Using expected GLIBC version: ${GLIBC_VERSION}"; | ||
else | ||
echo "❌ Unexpected GLIBC version: ${GLIBC_VERSION}"; | ||
exit 1; | ||
fi | ||
# Cleanup | ||
docker rmi prod | ||
- name: Save parachain binary | ||
shell: bash | ||
run: | | ||
mkdir -p build | ||
cp moonbeam build/moonbeam-${{ inputs.target }} | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: binaries-${{inputs.target}} | ||
path: build/moonbeam-${{inputs.target}} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Publish docker image | ||
description: | | ||
Publish docker image tags to dockerhub | ||
inputs: | ||
dockerhub_username: | ||
description: "Dockerhub username" | ||
required: true | ||
dockerhub_password: | ||
description: "Dockerhub password" | ||
required: true | ||
image_tags: | ||
description: "Image tags" | ||
required: true | ||
image_title: | ||
description: "Image title" | ||
required: true | ||
image_description: | ||
description: "Image description" | ||
required: true | ||
image_url: | ||
description: "Image url" | ||
required: true | ||
image_source: | ||
description: "Image source" | ||
required: true | ||
image_created: | ||
description: "Image creation timestamp" | ||
required: true | ||
image_revision: | ||
description: "Image revision" | ||
required: true | ||
image_licenses: | ||
description: "Image licenses" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.8.0 | ||
with: | ||
version: latest | ||
driver-opts: | | ||
image=moby/buildkit:master | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ inputs.dockerhub_username }} | ||
password: ${{ inputs.dockerhub_password }} | ||
- name: Build and push moonbeam | ||
id: docker_build | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: ./docker/moonbeam.Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: ${{ inputs.image_tags }} | ||
labels: | | ||
org.opencontainers.image.title=${{ inputs.image_title }} | ||
org.opencontainers.image.description=${{ inputs.image_title }} | ||
org.opencontainers.image.url=${{ inputs.image_url }} | ||
org.opencontainers.image.source=${{ inputs.image_source }} | ||
org.opencontainers.image.created=${{ inputs.image_created }} | ||
org.opencontainers.image.revision=${{ inputs.image_revision }} | ||
org.opencontainers.image.licenses=${{ inputs.image_licenses }} | ||
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
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
Oops, something went wrong.