Skip to content

Conversation

@thiagoavelino
Copy link
Contributor

@thiagoavelino thiagoavelino commented Aug 21, 2025

Description of changes:

Add Golang Build Workflow

This PR adds a new GitHub Actions workflow to build and test the Golang components of the project.

Key changes:

  • Added new workflow file .github/workflows/build-golang.yml
  • Workflow triggers on:
    • Push to main branches
    • Pull requests to main branches
    • Release creation

The workflow includes:

  1. Environment setup on Amazon Linux 2023
  2. Installation of required build tools and utilities
  3. SWIG 4.3.0 installation for interface generation
  4. Java/GraalVM 17.0.12 setup
  5. Maven 3.9.11 installation with caching
  6. Java build process
  7. C/CMake build process
  8. Golang test execution

This change was tested using the go version.

** It is expected the Github build to fail for now as this branch is not fully merged. **

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ble to run unit tests against the generated GsrSerDe Go version
pull_request:
branches: [ master, native-schema-registry-2025, native-schema-registry-csharp, native-schema-registry-golang ]
release:
branches: [ master, native-schema-registry-2025, native-schema-registry-csharp, native-schema-registry-golang ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would fail for master today, but by the time this change is merged into master, it should succeed. Is that correct?

timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: amazonlinux:2023
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Soon, we will need to build and test on musl and glibc separately.

uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain how the key is constructed here is? Are you caching only pom files?

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.

2 participants