coursier / setup-action Goto Github PK
View Code? Open in Web Editor NEW▶️ GitHub Action using Coursier to install JVM and Scala tools
License: MIT License
▶️ GitHub Action using Coursier to install JVM and Scala tools
License: MIT License
Consider using the Disco API for all the metadata about Java distributions, vendors, platforms, URLs, etc.
https://github.com/foojay2020/discoapi
Jabba is not kept up to date. ( https://github.com/coursier/jvm-index is currently being used, but then we wouldn't need to maintain it.)
EDIT: Jabba seems to be dead shyiko/jabba#833
at e.g. https://github.com/scala/docs.scala-lang/actions/runs/7731196638?pr=2960 we see:
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: coursier/[email protected]. For more information see: github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20.
perhaps this has already been fixed in this repo but just hasn't been released yet...?
The Action by default installs the outdated version 2.1.2 of the Coursier, resulting in the following issue when using in combination with Scala 3.5.0:
Warning: MainGenericRunner class is deprecated since Scala 3.5.0, and Scala CLI features will not work.
Warning: Please be sure to update to the Scala CLI launcher to use the new features.
Warning: It appears that your Coursier-based Scala installation is misconfigured.
Warning: To update to the new Scala CLI runner, please update (coursier, cs) commands first before re-installing scala.
Warning: Check the Scala 3.5.0 release notes to troubleshoot your installation.
Related discussion: https://users.scala-lang.org/t/bug-when-installing-latest-scala-with-coursier/10161
Can you actualize a major version tag and move it to the latest stable version?
https://docs.github.com/en/actions/creating-actions/about-custom-actions#using-release-management-for-actions
I am using the action on a self-hosted runner which requires proxy settings. I don't seem to be able to set these, meaning coursier fails when installing apps
I tried to set JAVA_OPTS, however this doesn't seem to be possible (not sure if this would work anyway)
My understanding is, I would need to get coursier to run like this: coursier -J-Dhttps.proxyHost=… -J-Dhttps.proxyPort=…
as documented here
If this makes sense as a useful feature, I'd be willing to work on a pull request. Let me know what you think
I'm using coursier/setup-action@v1
https://github.com/MasseGuillaume/porc-epic/blob/c7f39d786f24f2abfff1b23e8ffed9bd0f3a3e68/.github/workflows/ci.yml#L1-L20
setting the jvm to: graalvm:21
https://github.com/MasseGuillaume/porc-epic/runs/6169131815?check_suite_focus=true#step:4:21
output is
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b09)
OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 25.292-b09-jvmci-21.1-b05, mixed mode)
/opt/hostedtoolcache/cs/2.0.16/x64/cs java-home --jvm graalvm:21
/home/runner/.cache/coursier/jvm/[email protected]
I'm expecting Java 17, am I missing something ?
Actions using Node 12 are considered deprecated and encouraged to upgrade to Node 16.
For reference: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
I wonder if all that is needed is just changing this line.
runs:
- using: 'node12'
+ using: 'node16'
main: 'dist/index.js'
And refreshing the package-lock.json
using Node 16.
If so, I am more than happy to help.
But, if something else is required I would need assistance / guidance.
See also: coursier/cache-action#410
Really great to have such an extension, thanks for it @laughedelic!
FYI, I wrote this script some time ago (but didn't talk about it much at the time). It allows to get the coursier CLI for Linux / macOS / Windows, and also downloads it via the coursier cache, so that if cache-action runs before, nothing needs to be downloaded once the launcher is in cache. It also allows one to specify the coursier CLI version upfront (but needs to be updated when new coursier versions are tagged…).
You may want to embed that script in the action here, to have this extension work on macOS and Windows too, and use the cache. One point to pay attention to though, is that the coursier version it uses needs to be part of the cache key of cache-action. (Else the cache may not be saved after bumping the coursier version.)
It might be possible to pass parameters to cache-action from this action, I'm not sure… That said, it's not that big a deal if the CLI is not cached, as it's downloaded straight from GitHub…
Hi!
We just started seeing the following failure in CI:
Might it be related to coursier/apps#134? Upgrade to [email protected] solves it :)
Why coursier/setup-action Github Action is not certified by GitHub ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.