diff --git a/.github/workflows/publish-binary.yml b/.github/workflows/publish-binary.yml index ad0139e0df..0151564115 100644 --- a/.github/workflows/publish-binary.yml +++ b/.github/workflows/publish-binary.yml @@ -28,7 +28,7 @@ jobs: runs-on: bare-metal strategy: matrix: - cpu: ["", "skylake", "znver3"] + cpu: ["x86-64", "skylake", "znver3"] steps: - name: Checkout uses: actions/checkout@v4 @@ -39,7 +39,7 @@ jobs: # Build moonbeam # (we don't use volumes because of ownership/permissions issues) docker build \ - --tag prod \ + --tag prod --no-cache \ --build-arg="COMMIT=${{ github.event.inputs.to }}" \ --build-arg="RUSTFLAGS=-C target-cpu=${{ matrix.cpu }}" \ - < docker/moonbeam-production.Dockerfile @@ -54,20 +54,14 @@ jobs: docker rmi prod - name: Save parachain binary - if: ${{ matrix.cpu == '' }} - run: | - mkdir -p build - cp moonbeam build/moonbeam - - name: Save parachain custom binary - if: ${{ matrix.cpu != '' }} run: | mkdir -p build cp moonbeam build/moonbeam-${{matrix.cpu}} - name: Upload binary uses: actions/upload-artifact@v4 with: - name: binaries - path: build + name: binaries-${{matrix.cpu}} + path: build/moonbeam-${{matrix.cpu}} ####### Prepare the release draft ####### @@ -85,7 +79,8 @@ jobs: fetch-depth: 0 - uses: actions/download-artifact@v4 with: - name: binaries + pattern: binaries-* + merge-multiple: true path: build - name: Use Node.js uses: actions/setup-node@v4 @@ -102,6 +97,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} working-directory: original-tools run: | + mv ../build/moonbeam-x86-64 ../build/moonbeam yarn yarn -s run ts-node github/generate-release-body.ts --owner "${{ github.repository_owner }}" --repo "$(basename ${{ github.repository }})" --from "${{ github.event.inputs.from }}" --to "${{ github.event.inputs.to }}" --srtool-report-folder '../build/' > ../body.md - name: Create draft release @@ -122,26 +118,27 @@ jobs: needs: ["build-binary", "publish-draft-release"] strategy: matrix: - cpu: ["", "skylake", "znver3"] + cpu: ["x86-64", "skylake", "znver3"] node: ["moonbeam"] steps: - uses: actions/download-artifact@v4 with: - name: binaries + pattern: binaries-* + merge-multiple: true path: build - name: Upload moonbeam uses: actions/upload-release-asset@v1 - if: ${{ matrix.cpu == '' }} + if: ${{ matrix.cpu == 'x86-64' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.publish-draft-release.outputs.asset_upload_url }} - asset_path: build/${{matrix.node}} + asset_path: build/${{matrix.node}}-${{matrix.cpu}} asset_name: ${{matrix.node}} asset_content_type: application/octet-stream - name: Upload moonbeam custom binary uses: actions/upload-release-asset@v1 - if: ${{ matrix.cpu != '' }} + if: ${{ matrix.cpu != 'x86-64' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -162,7 +159,8 @@ jobs: ref: ${{ github.event.inputs.to }} - uses: actions/download-artifact@v4 with: - name: binaries + pattern: binaries-* + merge-multiple: true path: build - name: Login to DockerHub uses: docker/login-action@v3 @@ -170,6 +168,8 @@ jobs: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} - run: | + mv build/moonbeam-x86-64 build/moonbeam + DOCKER_IMAGE=moonbeamfoundation/moonbeam COMMIT=`git rev-list -n 1 '${{ github.event.inputs.to }}'` SHA=sha-${COMMIT::8} diff --git a/.github/workflows/subxt-diff.yml b/.github/workflows/subxt-diff.yml index c7071e054f..8affc2c21b 100644 --- a/.github/workflows/subxt-diff.yml +++ b/.github/workflows/subxt-diff.yml @@ -2,8 +2,8 @@ name: Subxt Diff on: workflow_dispatch: inputs: - last_release_sha8: - description: The sha8 of the last release, with which to compare local to. + last_spec_version: + description: The runtime spec of the last release, with which to compare local to (ex. 1500) required: true spec_version: description: runtime spec version (ex. 1601) @@ -40,12 +40,12 @@ jobs: path: build - name: Install Subxt-cli run: | - cargo install subxt-cli + cargo install subxt-cli --locked echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Run last_release node via Docker run: | - docker pull moonbeamfoundation/moonbeam:sha-${{ github.event.inputs.last_release_sha8 }} - docker run -d --name moonbeam_container -p 9911:9911 moonbeamfoundation/moonbeam:sha-${{ github.event.inputs.last_release_sha8 }} \ + docker pull moonbeamfoundation/moonbeam:runtime-${{ github.event.inputs.last_spec_version }} + docker run -d --name moonbeam_container -p 9911:9911 moonbeamfoundation/moonbeam:runtime-${{ github.event.inputs.last_spec_version }} \ --chain=${{ matrix.runtime }}-dev \ --no-hardware-benchmarks \ --no-telemetry \