dmikusa / binding-tool

Generate Kubernetes service bindings for use with Cloud Native Buildpacks
Apache License 2.0
27 stars 4 forks source link

Binding tool releases should provide an bt-arm64-apple-darwin flavor #39

Closed anthonydahanne closed 1 year ago

anthonydahanne commented 1 year ago

It seems like the strategy used here to generate multiple binaries for multiple platforms is to rely on the OS default toolchain:

    strategy:
      matrix:
        include:
          - os: macos-latest
            target: x86_64-apple-darwin
            suffix: ''
          - os: ubuntu-latest
            target: x86_64-unknown-linux-gnu
            suffix: ''
          - os: windows-latest
            target: x86_64-pc-windows-msvc
            suffix: .exe

Unfortunately, this approach is limited by the number of OSes/ platform supported by the default provided runners by GH.

We could envision adding self hosted runner, but for a single project, that seems overkill.

I believe the long term solution is to rely on on rust toolchains https://rust-lang.github.io/rustup/cross-compilation.html

anthonydahanne commented 1 year ago

somebody did that there: https://gist.github.com/Tehnix/5209b8fefd368bfdb67ca8761d3b8009#file-ci-yml-L85

dmikusa commented 1 year ago

This is done now, see the latest release.