Giter VIP home page Giter VIP logo

Comments (5)

jimafisk avatar jimafisk commented on May 17, 2024

rogchap/v8go#38

from plenti.

jimafisk avatar jimafisk commented on May 17, 2024

Looks like the issue is building binaries for windows or darwin (mac) with v8go:

See screenshot

windows_mac_builds

Tracking progress on rogchap/v8go#7

from plenti.

jimafisk avatar jimafisk commented on May 17, 2024

Cross compiling is an issue for all modules that rely on CGO (like v8go): rogchap/v8go#35 (comment)

There is a docker container we could use (see https://medium.com/@robdefeo/cross-compile-with-cgo-and-goreleaser-6af884731222 and goreleaser/goreleaser#708 (comment)).

It looks like a 2nd docker image was added to Goreleaser: goreleaser/goreleaser#795 (comment)

from plenti.

jimafisk avatar jimafisk commented on May 17, 2024

I was able to get this working still using the Goreleaser GitHub Action. I needed to do the following things:

  1. Break goreleaser into multiple builds: goreleaser/goreleaser#459
  2. Pass ldflags to fix errors like shown here: goreleaser/goreleaser-action#40 (comment)
  3. Create an osxcross target like this that we can pull into the project as a GitHub Action step (more details here):
     -
        name: OSXCross for CGO Support
        run: |
          mkdir ../plenti-osxcross
          git clone https://github.com/plentico/plenti-osxcross.git ../plenti-osxcross/target

from plenti.

jimafisk avatar jimafisk commented on May 17, 2024

Additional cgo cross-compiling details:

from plenti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.