Giter Site home page Giter Site logo

Comments (4)

matteosacchetto avatar matteosacchetto commented on May 18, 2024 3

I'm not that familiar with writing custom actions, but I was able to build arm and amr64 executables using docker.

Here is a snippet to do so for arm:

jobs:
  build-arm:
    runs-on: ubuntu-latest
    steps:
      # Checkout
      - uses: actions/checkout@v2

      # Setup QEMU
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

      # Build the image
      - name: Build with caxa for arm
        run: |
          docker run --rm --platform linux/arm/v7 -v $(pwd):/app --workdir="/app" --user 1000:1000 node:lts sh -c "npm ci; npx caxa ... "

To do the same on arm64, simply change --platform linux/arm/v7 to --platform linux/arm64

from caxa.

SOVLOOKUP avatar SOVLOOKUP commented on May 18, 2024 1

I just made it in my project, I think it can help you.

https://github.com/SOVLOOKUP/starry/blob/master/.github/workflows/node.js.yml

It includes:

  1. Compile and compress source code (using tsup)
  2. Minimize dependencies size (based on dependencies-resolver)
  3. Cross-platform compilation
  4. Automated release

from caxa.

emmercm avatar emmercm commented on May 18, 2024

I followed your methodology @matteosacchetto and ended up with this:

https://github.com/emmercm/igir/blob/5b6ba8cf650626651458e65b4080a40df5c0caff/.github/workflows/compile.yml

from caxa.

leafac avatar leafac commented on May 18, 2024

Hi y’all,

Thanks for using caxa and for the conversation here.

I’ve been thinking about the broad strategy employed by caxa and concluded that there is a better way to solve the problem. It doesn’t use stubs at all, so it sidesteps this whole issue.

It’s a different enough approach that I think it deserves a new name, and it’s part of a bigger toolset that I’m building, which I call Radically Straightforward · Package.

I’m deprecating caxa and archiving this repository. I invite you to continue the conversation in Radically Straightforward’s issues.

Best.

from caxa.

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.