Skip to content
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

Add a debug build to our release pipeline #91

Open
steezeburger opened this issue May 28, 2024 · 0 comments
Open

Add a debug build to our release pipeline #91

steezeburger opened this issue May 28, 2024 · 0 comments
Labels
good-first-issue Good for newcomers

Comments

@steezeburger
Copy link
Member

steezeburger commented May 28, 2024

The prod build removes the symbol table and DWARF debugging information.

We should add a debug build to our pipeline so that we have a binary that can be ran with a debugger for when we find a hard to solve bug in our production binary. Probably just:

  build-for-debug:
    name: Build For Debug
    runs-on: ubuntu-latest
    strategy:
      matrix:
        goos: [linux, darwin]
        goarch: [amd64, arm64]
        exclude:
          - goarch: "arm64"
            goos: "linux"
    steps:
      - uses: actions/checkout@v4
      - uses: wangyoucao577/go-release-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          goos: ${{ matrix.goos }}
          goarch: ${{ matrix.goarch }}
          ldflags: >
            -X github.com/astria/astria-cli-go/cmd.version=${{ github.ref_name }}
          project_path: "./"
          binary_name: "astria-go-debug"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant