Giter Club home page Giter Club logo

Comments (5)

eskatos avatar eskatos commented on August 27, 2024

Hi @ZacSweers,
Is that a common practice? Could you please share some pointers showing how this would be done from a workflow point of view?

from gradle-build-action.

ZacSweers avatar ZacSweers commented on August 27, 2024

I don't have a public example but there re some cases where we run commands with local env vars

FOO=bar ./gradlew build

from gradle-build-action.

ZacSweers avatar ZacSweers commented on August 27, 2024

A better example would be env vars that gradle or other plugins (like the android plugin seek)
https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables

We may dynamically set the JDK in a conditional way that can't be statically defined in github actions' env argument alone, hence wanting a script to manage it.

from gradle-build-action.

eskatos avatar eskatos commented on August 27, 2024

Hi Zac,

I can see how this could be useful. Thanks for clarifying.
I don't have that immediate need so it may take a while before I implement that myself.
Happy to review a pull request though ;)

It is somewhat related to #18 and should be made consistent form the YAML point of view.

from gradle-build-action.

bigdaz avatar bigdaz commented on August 27, 2024

With [email protected] it is now possible to use the action to configure Gradle and use a standard run action for the actual Gradle invocation. This should allow you to benefit from the caching this action provides, but retain your existing step that invokes Gradle, including any scripted setup of the environment.

from gradle-build-action.

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.