8000 build: Upgrade to GoReleaser Pro. by betterengineering · Pull Request #467 · tidbyt/pixlet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

build: Upgrade to GoReleaser Pro. #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2022
Merged

Conversation

betterengineering
Copy link
Contributor
@betterengineering betterengineering commented Oct 30, 2022

Overview

We've been making use of GoReleaser, we should pay them! I also hope to use even more of their feature set, so this feels like a good time to start a subscription.

Changes

  • build: Upgrade to GoReleaser Pro.
    • This commit updates our build to use GoReleaser Pro. Building tighter integration with GoReleaser should allow us to release to more platforms. In future changes, I hope to use GoReleaser to take over a lot of the build steps that are currently in Make and shell scripts.

Tests

I downloaded previously built release-artifacts from a tag run from GitHub Actions and placed it in build/. I then ran chmod -x prebuilt/linux_amd64/pixlet to ensure it was not executable given there is no garuntee that the action would download it with permissions. Finally, I ran goreleaser and ensured the output was as expected:

 goreleaser release --snapshot --rm-dist

  • by using this software you agree with its EULA, available at https://goreleaser.com/eula
  • running goreleaser v1.12.3-pro
  • skipping license check on snapshot
  • starting release...
  • loading config file                              file=.goreleaser.yml
  • loading environment variables
  • getting and validating git state
    • building...                                    commit=761392191ee2a5bc6957becb1ad7733845525dfe latest tag=v0.22.4
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • running before hooks
    • running hook                                   hook=scripts/set-executable.sh
  • snapshotting
    • building snapshot...                           version=0.22.4-SNAPSHOT-7613921
  • checking distribution directory
    • --rm-dist is set, cleaning it up
  • loading go mod information
  • build prerequisites
  • writing effective config file
    • writing                                        config=out/config.yaml
  • building binaries
    • building                                       binary=out/pixlet_linux_arm64/pixlet
    • building                                       binary=out/pixlet_windows_amd64/pixlet.exe
    • building                                       binary=out/pixlet_darwin_arm64/pixlet
    • building                                       binary=out/pixlet_linux_amd64/pixlet
    • building                                       binary=out/pixlet_darwin_amd64/pixlet
  • archives
    • creating                                       archive=out/pixlet_0.22.4-SNAPSHOT-7613921_linux_amd64.tar.gz
    • creating                                       archive=out/pixlet_0.22.4-SNAPSHOT-7613921_windows_amd64.tar.gz
    • creating                                       archive=out/pixlet_0.22.4-SNAPSHOT-7613921_linux_arm64.tar.gz
    • creating                                       archive=out/pixlet_0.22.4-SNAPSHOT-7613921_darwin_arm64.tar.gz
    • creating                                       archive=out/pixlet_0.22.4-SNAPSHOT-7613921_darwin_amd64.tar.gz
    • took: 11s
  • calculating checksums
  • homebrew tap formula
    • guessing install to be "bin.install \"pixlet\""
    • guessing install to be "bin.install \"pixlet\""
    • writing                                        formula=out/pixlet.rb
  • storing release metadata
    • writing                                        file=out/artifacts.json
    • writing                                        file=out/metadata.json
  • release succeeded after 11s
  • thanks for using goreleaser-pro!

This commit updates our build to use GoReleaser Pro. Building tighter
integration with GoReleaser should allow us to release to more
platforms. In future changes, I hope to use GoReleaser to take over a
lot of the build steps that are currently in Make and shell scripts.
@betterengineering betterengineering merged commit 06e991f into main Oct 31, 2022
@betterengineering betterengineering deleted the mark/go-releaser-pro branch October 31, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0