Skip to content

docs(m1): add CONFLICTS.md — owner partition for 69 content conflicts… #10

docs(m1): add CONFLICTS.md — owner partition for 69 content conflicts…

docs(m1): add CONFLICTS.md — owner partition for 69 content conflicts… #10

Workflow file for this run

# Movement CLI Release Workflow
# Builds and releases the Movement CLI for macOS (ARM & x86_64) and Linux (x86_64)
# Trigger: Actions Tab -> "Release CLI" -> "Run Workflow"
name: "Release CLI"
on:
workflow_dispatch:
inputs:
release_version:
type: string
required: true
description: "The release version (e.g. 7.4.0)"
source_git_ref_override:
type: string
required: false
description: "Git ref override (branch, tag, or SHA). Defaults to workflow ref."
dry_run:
type: boolean
required: false
default: true
description: "Dry run - If checked, the release will not be created"
skip_checks:
type: boolean
required: false
default: false
description: "Skip version validation checks"
jobs:
build-linux-x86_64:
name: "Build Linux x86_64"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
- uses: ./.github/actions/cli-rust-setup
- name: Build CLI
run: scripts/cli/build_cli_release.sh "Linux" "${{ inputs.release_version }}" "${{ inputs.skip_checks }}" "false"
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: cli-builds-linux-x86_64
path: movement-cli-*.zip
build-macos-x86_64:
name: "Build macOS x86_64"
runs-on: macos-14-large
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
- uses: ./.github/actions/cli-rust-setup
- name: Build CLI
run: scripts/cli/build_cli_release.sh "macOS" "${{ inputs.release_version }}" "${{ inputs.skip_checks }}" "false"
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: cli-builds-macos-x86_64
path: movement-cli-*.zip
build-macos-arm64:
name: "Build macOS ARM64"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
- uses: ./.github/actions/cli-rust-setup
- name: Build CLI
run: scripts/cli/build_cli_release.sh "macOS" "${{ inputs.release_version }}" "${{ inputs.skip_checks }}" "false"
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: cli-builds-macos-arm64
path: movement-cli-*.zip
<<<<<<< HEAD

Check failure on line 78 in .github/workflows/cli-release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cli-release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 78
release:
name: "Create GitHub Release"
=======
build-windows-binary:
name: "Build Windows binary"
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
# Ensure that long paths work
- name: Ensure long paths work
run: git config --global core.longpaths true
shell: bash
- name: Build CLI
run: scripts\cli\build_cli_release.ps1
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: cli-builds-windows
path: aptos-cli-*.zip
release-binaries:
name: "Release binaries"
>>>>>>> e33e3c1b
needs:
- build-linux-x86_64
- build-macos-x86_64
- build-macos-arm64
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ inputs.dry_run == false }}
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
pattern: cli-builds-*
merge-multiple: true
- name: List artifacts
run: ls -la movement-cli-*.zip
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: "movement-cli-v${{ inputs.release_version }}"
name: "Movement CLI v${{ inputs.release_version }}"
draft: false
prerelease: false
<<<<<<< HEAD
files: movement-cli-*.zip
generate_release_notes: true
=======
title: "${{ format('Aptos CLI Release v{0}', inputs.release_version) }}"
files: |
aptos-cli-*.zip
bump-homebrew-version-pr:
name: "Make PR to bump version in Homebrew"
needs:
- release-binaries
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: aptos
tag-name: "${{ format('aptos-cli-v{0}', inputs.release_version) }}"
base-branch: main
create-pullrequest: true
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
From CLI release run ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
COMMITTER_TOKEN: ${{ secrets.APTOS_BOT_GH_PAT_APTOS_CORE_HOMEBREW_BUMPER }}
>>>>>>> e33e3c1b