diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ada727bbeea6e6..d071a9903597df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,10 +43,10 @@ jobs: matrix: os: [ - windows-ghcloud, - ubuntu-ghcloud, - macos-latest-xl, - macos-arm64-self-hosted + ubuntu-ghcloud + # windows-ghcloud, + # macos-latest-xl, + # macos-arm64-self-hosted ] fail-fast: false runs-on: ${{ matrix.os }} @@ -154,153 +154,153 @@ jobs: tar -cvzf ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz -C ${{ env.TMP_BUILD_DIR }} . [[ ${{ env.sui_tag }} == *"testnet"* ]] && aws s3 cp ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz s3://sui-releases/releases/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz || true - - name: "Publish Windows sui binary to Chocolately" - if: ${{ matrix.os == 'windows-ghcloud' && contains( env.sui_tag, 'testnet') }} - working-directory: chocolatey - continue-on-error: true - shell: bash - run: | - choco install checksum - export sui_sha=$(checksum -t sha256 ${{ env.TMP_BUILD_DIR }}/sui.exe) - - cat <>VERIFICATION.txt - Sui Binary verification steps - 1. Go to https://github.com/MystenLabs/sui/releases/download/${{ env.sui_tag }}/sui-${{ env.sui_tag }}-windows-x86_64.tgz - 2. Extract sui-windows-x86_64.exe - 3. checksum.exe -t sha256 sui-windows-x86_64.exe: ${sui_sha} - - File 'LICENSE.txt' is obtained from: https://github.com/MystenLabs/sui/blob/main/LICENSE - EOF - - choco pack --version ${{ env.sui_version }} configuration=release - choco apikey --api-key ${{ secrets.CHOCO_API_KEY }} --source https://push.chocolatey.org/ - choco push sui.${{ env.sui_version }}.nupkg --source https://push.chocolatey.org/ - - - name: Upload release artifacts for ${{ matrix.os }} platform - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # pin@v3 - with: - name: sui-binaries-${{ matrix.os }} - if-no-files-found: error - path: | - ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz - - - name: Attach artifacts to ${{ env.sui_tag }} release in GH - uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1 - with: - tag_name: ${{ env.sui_tag }} - files: | - ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz - - update-homebrew-formula: - name: Run brew bump-formula-pr for sui on testnet releases - needs: release-build - runs-on: ubuntu-latest - # releasing sui cli on testnet releases because it lags `main` less than mainnet, but is more likely to be stable than devnet - if: ${{ contains( inputs.sui_tag, 'testnet') || contains( github.ref, 'testnet') }} - steps: - - name: Clean up tag name ${{ env.TAG_NAME }} - shell: bash - run: | - echo "sui_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'//)" >> $GITHUB_ENV - echo "versionless_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'// | sed s/'testnet\-v'//)" >> $GITHUB_ENV - - uses: mislav/bump-homebrew-formula-action@b3327118b2153c82da63fd9cbf58942146ee99f0 # pin@v3 - with: - formula-name: sui - create-pullrequest: true - tag-name: "${{ env.sui_tag }}" - commit-message: | - {{formulaName}} ${{ env.versionless_tag }} - - Created by https://github.com/mislav/bump-homebrew-formula-action - - From release: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - env: - # https://github.com/settings/tokens/new?scopes=public_repo,workflow - COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GH_FORMULA_BUMP }} - - update-homebrew-tap: - name: Update mysten-tap sui.rb file - needs: release-build - runs-on: ubuntu-latest - if: ${{ contains( inputs.sui_tag, 'testnet') || contains( github.ref, 'testnet') }} - steps: - - name: Clean up tag name ${{ env.TAG_NAME }} - shell: bash - run: | - echo "sui_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'//)" >> $GITHUB_ENV - - # Checkout MystenLabs/homebrew-tap - - name: Checkout Target Repository - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 - with: - repository: MystenLabs/homebrew-tap - # @john's PAT, needs to be rotated jan 5 2025 - token: ${{ secrets.HOMEBREW_TAP_REPO_READ_WRITE }} - ref: main - fetch-depth: 0 - - # Download all artifacts from the previous job - - name: Download all artifacts - uses: actions/download-artifact@cbed621e49e4c01b044d60f6c80ea4ed6328b281 # pin@v2 - - - name: Fetch Ubuntu x86_64 Binary and Compute SHA256 - shell: bash - run: | - echo "sha256_ubuntu_release=$(sha256sum sui-binaries-ubuntu-ghcloud/sui-${{ env.sui_tag }}-ubuntu-x86_64.tgz | awk '{print $1}')" >> $GITHUB_ENV - echo "sha256_macos_x86_release=$(sha256sum sui-binaries-macos-latest-xl/sui-${{ env.sui_tag }}-macos-x86_64.tgz | awk '{print $1}')" >> $GITHUB_ENV - echo "sha256_macos_arm_release=$(sha256sum sui-binaries-macos-arm64-self-hosted/sui-${{ env.sui_tag }}-macos-arm64.tgz | awk '{print $1}' )" >> $GITHUB_ENV - - # Install Jinja2 for templating - - name: Install Jinja2 - run: pip install jinja2 - - - name: Apply Jinja2 Template and Update Formula - run: | - python3 - <>VERIFICATION.txt + # Sui Binary verification steps + # 1. Go to https://github.com/MystenLabs/sui/releases/download/${{ env.sui_tag }}/sui-${{ env.sui_tag }}-windows-x86_64.tgz + # 2. Extract sui-windows-x86_64.exe + # 3. checksum.exe -t sha256 sui-windows-x86_64.exe: ${sui_sha} + + # File 'LICENSE.txt' is obtained from: https://github.com/MystenLabs/sui/blob/main/LICENSE + # EOF + + # choco pack --version ${{ env.sui_version }} configuration=release + # choco apikey --api-key ${{ secrets.CHOCO_API_KEY }} --source https://push.chocolatey.org/ + # choco push sui.${{ env.sui_version }}.nupkg --source https://push.chocolatey.org/ + + # - name: Upload release artifacts for ${{ matrix.os }} platform + # uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # pin@v3 + # with: + # name: sui-binaries-${{ matrix.os }} + # if-no-files-found: error + # path: | + # ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz + + # - name: Attach artifacts to ${{ env.sui_tag }} release in GH + # uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1 + # with: + # tag_name: ${{ env.sui_tag }} + # files: | + # ./tmp/sui-${{ env.sui_tag }}-${{ env.os_type }}.tgz + + # update-homebrew-formula: + # name: Run brew bump-formula-pr for sui on testnet releases + # needs: release-build + # runs-on: ubuntu-latest + # # releasing sui cli on testnet releases because it lags `main` less than mainnet, but is more likely to be stable than devnet + # if: ${{ contains( inputs.sui_tag, 'testnet') || contains( github.ref, 'testnet') }} + # steps: + # - name: Clean up tag name ${{ env.TAG_NAME }} + # shell: bash + # run: | + # echo "sui_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'//)" >> $GITHUB_ENV + # echo "versionless_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'// | sed s/'testnet\-v'//)" >> $GITHUB_ENV + # - uses: mislav/bump-homebrew-formula-action@b3327118b2153c82da63fd9cbf58942146ee99f0 # pin@v3 + # with: + # formula-name: sui + # create-pullrequest: true + # tag-name: "${{ env.sui_tag }}" + # commit-message: | + # {{formulaName}} ${{ env.versionless_tag }} + + # Created by https://github.com/mislav/bump-homebrew-formula-action + + # From release: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + # env: + # # https://github.com/settings/tokens/new?scopes=public_repo,workflow + # COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GH_FORMULA_BUMP }} + + # update-homebrew-tap: + # name: Update mysten-tap sui.rb file + # needs: release-build + # runs-on: ubuntu-latest + # if: ${{ contains( inputs.sui_tag, 'testnet') || contains( github.ref, 'testnet') }} + # steps: + # - name: Clean up tag name ${{ env.TAG_NAME }} + # shell: bash + # run: | + # echo "sui_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'//)" >> $GITHUB_ENV + + # # Checkout MystenLabs/homebrew-tap + # - name: Checkout Target Repository + # uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + # with: + # repository: MystenLabs/homebrew-tap + # # @john's PAT, needs to be rotated jan 5 2025 + # token: ${{ secrets.HOMEBREW_TAP_REPO_READ_WRITE }} + # ref: main + # fetch-depth: 0 + + # # Download all artifacts from the previous job + # - name: Download all artifacts + # uses: actions/download-artifact@cbed621e49e4c01b044d60f6c80ea4ed6328b281 # pin@v2 + + # - name: Fetch Ubuntu x86_64 Binary and Compute SHA256 + # shell: bash + # run: | + # echo "sha256_ubuntu_release=$(sha256sum sui-binaries-ubuntu-ghcloud/sui-${{ env.sui_tag }}-ubuntu-x86_64.tgz | awk '{print $1}')" >> $GITHUB_ENV + # echo "sha256_macos_x86_release=$(sha256sum sui-binaries-macos-latest-xl/sui-${{ env.sui_tag }}-macos-x86_64.tgz | awk '{print $1}')" >> $GITHUB_ENV + # echo "sha256_macos_arm_release=$(sha256sum sui-binaries-macos-arm64-self-hosted/sui-${{ env.sui_tag }}-macos-arm64.tgz | awk '{print $1}' )" >> $GITHUB_ENV + + # # Install Jinja2 for templating + # - name: Install Jinja2 + # run: pip install jinja2 + + # - name: Apply Jinja2 Template and Update Formula + # run: | + # python3 - <