From 9045df1df40e0b4c437c1a6fb4375f9f4dcf733e Mon Sep 17 00:00:00 2001 From: shellrow Date: Sun, 27 Apr 2025 22:05:11 +0900 Subject: [PATCH] Disable homebrew --- .github/workflows/release.yml | 49 +---------------------------------- dist-workspace.toml | 9 +++---- 2 files changed, 4 insertions(+), 54 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa8643a..99e9fb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -279,61 +279,14 @@ jobs: gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* - publish-homebrew-formula: - needs: - - plan - - host - runs-on: "ubuntu-22.04" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PLAN: ${{ needs.plan.outputs.val }} - GITHUB_USER: "axo bot" - GITHUB_EMAIL: "admin+bot@axo.dev" - if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - repository: "shellrow/homebrew-tap-ntap" - token: ${{ secrets.HOMEBREW_TAP_TOKEN }} - # So we have access to the formula - - name: Fetch homebrew formulae - uses: actions/download-artifact@v4 - with: - pattern: artifacts-* - path: Formula/ - merge-multiple: true - # This is extra complex because you can make your Formula name not match your app name - # so we need to find releases with a *.rb file, and publish with that filename. - - name: Commit formula files - run: | - git config --global user.name "${GITHUB_USER}" - git config --global user.email "${GITHUB_EMAIL}" - - for release in $(echo "$PLAN" | jq --compact-output '.releases[] | select([.artifacts[] | endswith(".rb")] | any)'); do - filename=$(echo "$release" | jq '.artifacts[] | select(endswith(".rb"))' --raw-output) - name=$(echo "$filename" | sed "s/\.rb$//") - version=$(echo "$release" | jq .app_version --raw-output) - - export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" - brew update - # We avoid reformatting user-provided data such as the app description and homepage. - brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true - - git add "Formula/${filename}" - git commit -m "${name} ${version}" - done - git push - announce: needs: - plan - host - - publish-homebrew-formula # use "always() && ..." to allow us to wait for all publish jobs while # still allowing individual publish jobs to skip themselves (for prereleases). # "host" however must run to completion, no skipping allowed! - if: ${{ always() && needs.host.result == 'success' && (needs.publish-homebrew-formula.result == 'skipped' || needs.publish-homebrew-formula.result == 'success') }} + if: ${{ always() && needs.host.result == 'success' }} runs-on: "ubuntu-22.04" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/dist-workspace.toml b/dist-workspace.toml index e1706b3..e548df1 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -8,15 +8,15 @@ cargo-dist-version = "0.28.4" # CI backends to support ci = "github" # The installers to generate for each app -installers = ["shell", "homebrew"] +installers = ["shell"] #installers = ["shell", "homebrew", "powershell"] # A GitHub repo to push Homebrew formulas to -tap = "shellrow/homebrew-tap-ntap" +#tap = "shellrow/homebrew-tap-ntap" # Target platforms to build apps for (Rust target-triple syntax) targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu"] #targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] # Publish jobs to run in CI -publish-jobs = ["homebrew"] +#publish-jobs = ["homebrew"] # Which actions to run on pull requests pr-run-mode = "plan" # Whether to install an updater program @@ -25,6 +25,3 @@ install-updater = false include = ["resources/doc/USAGE.md"] # Path that installers should place binaries in install-path = "CARGO_HOME" - -[dist.github-custom-runners] -runner = "ubuntu-latest"