Comments (5)
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.
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.
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.
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.
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)
- Error with gradle-build-action v2.11.0 and Gradle 1.12: unable to resolve class PluginManager HOT 5
- Poor error reporting for dependency-submission failure
- Share cache entry between matching Jobs in different workflows HOT 10
- Allow Job Summary to be automatically added as a PR comment
- Action adds `org.gradle.java.installations.fromEnv` property which overrides project level setting
- Macos runner: getaddrinfo ENOTFOUND downloads.gradle.org HOT 2
- Make it easier to provide Develocity access key HOT 1
- Is it possible to share depenedencies / `caches/modules-2` between multiple jobs? HOT 3
- Fail build step if Gradle version does not support dependency graph generation
- Provide dedicated action for dependency graph submission HOT 10
- Long delay in post-action if cache entry is written HOT 1
- Unable to use gradle wrapper HOT 1
- Make it easy to publish a build scan to scans.gradle.com
- Node 20 is now deprecated HOT 3
- working-directory not honoured HOT 1
- IMPORTANT: Please raise issues at https://github.com/gradle/actions
- Cache entries and Job Summary not written on cache-cleanup failure
- Adapt for Develocity rebrand
- Deprecate the `arguments` parameter HOT 3
- Fail workflow if permissions do not allow dependency graph submission
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-build-action.