setup-java
Set up your GitHub Actions workflow with a specific version of Java (by actions)
setup-dotnet
Set up your GitHub Actions workflow with a specific version of the .NET core sdk (by actions)
| setup-java | setup-dotnet | |
|---|---|---|
| 12 | 6 | |
| 1,936 | 1,177 | |
| 1.3% | 1.7% | |
| 7.1 | 6.2 | |
| 3 days ago | 4 days ago | |
| TypeScript | TypeScript | |
| MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
setup-java
Posts with mentions or reviews of setup-java.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-08-28.
- GitHub workflows tips and tricks
-
Semantic Versioning using GitVersion YAML file for your .NET, Java, and Kotlin projects' CI/CD
name: Java Build and Test With Gradle on: [push, pull_request, workflow_dispatch] jobs: build: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4.2.2 with: fetch-depth: 0 - name: Set up JDK 23 uses: actions/setup-java@v4.5.0 #https://github.com/actions/setup-java with: java-version: '23' distribution: 'oracle' - name: Install GitVersion 6.0.5 for Gradle run: | wget -q -O gitversion.tar.gz https://github.com/GitTools/GitVersion/releases/download/6.0.5/gitversion-linux-x64-6.0.5.tar.gz mkdir gitversion_extracted tar -xzf gitversion.tar.gz -C gitversion_extracted ls -R gitversion_extracted sudo mv gitversion_extracted/gitversion /usr/local/bin/gitversion sudo chmod +x /usr/local/bin/gitversion - name: Setup Gradle 8.11.1 uses: gradle/actions/setup-gradle@v4 #https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version with: gradle-version: '8.11.1' - name: Build with Gradle 8.11.1 run: gradle build --scan --warning-mode all dependency-submission: # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout uses: actions/checkout@v4.2.2 - name: Set up JDK 23 uses: actions/setup-java@v4.5.0 with: java-version: '23' distribution: 'oracle' - name: Setup Gradle 8.11.1 uses: gradle/actions/setup-gradle@v4 with: gradle-version: '8.11.1' - name: Setup Gradle Wrapper run: gradle wrapper - name: Generate and submit dependency graph uses: gradle/actions/dependency-submission@v4
- Disable Annotations in Github Actions
-
Using Github Actions to publish your Flutter APP to Firebase App Distribution
Then, we have two important initial steps to define. The first one is an official GitHub Action used to check-out a repository so a workflow can access it. The second one it's pretty more complex but, briefly, downloads and set up a requested version of Java.
-
Top 10 GitHub Actions You Should Use to set up your CI/CD Pipeline
The most popular ones are Node.js, Python, Java JDK, Go, .Net Core SDK.
-
My summary of jPrime 2022
Finally, note that the v2 of setup-java GitHub Action limits the possible JDK distributions to four options. If you need to use one that is not listed, use foojayio/setup-java instead to configure any distribution.
-
Upgrade to Gradle JDK 11 on Github Actions
See https://github.com/actions/setup-java for more configuration regarding distribution, version and caching.
-
Github action to download and install Oracle JDK and OpenJDK (including EA) builds.
Why can't Oracle just integrate with https://github.com/actions/setup-java like everyone else?
-
Deploying to GitHub Pages using GitHub Actions
Next up we'll need to add a step to compile our production ready build. For this we can add two new steps, one which configures our Node version to ensure it matches our application, followed by another that runs the necessary commands with npm. Depending on how your application is built you may need to add another step between these to install any sort of required environments such as Python or Java.
-
JaCoCo coverage badges, PR coverage checks, and PR coverage comments, from GitHub Actions
Set up the JDK with the actions/setup-java GitHub Action.
setup-dotnet
Posts with mentions or reviews of setup-dotnet.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-12-03.
-
Semantic Versioning using GitVersion YAML file for your .NET, Java, and Kotlin projects' CI/CD
# This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net name: .NET Build and Test on: [push, pull_request, workflow_dispatch] jobs: build_and_Test: runs-on: ubuntu-latest steps: - name: Checkout #https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/setup.md uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install GitVersion #https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/setup.md uses: gittools/actions/gitversion/setup@v3.0.0 with: versionSpec: '6.x' preferLatestVersion: true - name: Determine Version #https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute.md uses: gittools/actions/gitversion/execute@v3.0.0 with: useConfigFile: true updateAssemblyInfo: true - name: Setup .NET #https://github.com/actions/setup-dotnet uses: actions/setup-dotnet@v4 - name: Available projects run: dotnet sln list - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal
-
Top 10 GitHub Actions You Should Use to set up your CI/CD Pipeline
The most popular ones are Node.js, Python, Java JDK, Go, .Net Core SDK.
-
Deploying C# Azure Functions via GitHub Actions
Setup Dotnet
-
Azure Functions Deployment using GitHub Actions
The second step will set up .NET on the runner. Here I have specified to install the latest version of 3.1. We are using the GitHub action project setup-dotnet to complete the installation on the runner.
-
Does Github Actions not support .NET 5, or did I just set my action up wrong !
Your question isn't really about whether GitHub Actions support .NET 5, but more about whether the setup-dotnet GitHub Action supports .NET 5 since it is that action that you are using to install the necessary .NET tools to build your project. Here is a link to the setup-dotnet GitHub Action and it's documentation.
-
How to deploy Blazor WebAssembly to Firebase Hosting
This workflow is executed whenever a commit is pushed to the 'main' branch. The single job called 'build_and_deploy' is run on an Ubuntu machine. This machine has some software pre-installed. Today the 'ubuntu-latest' image comes with the .NET 5 SDK pre-configured, but at the time you are reading this, the SDK version could be a newer version. You can use the 'setup-dotnet' GitHub Action to setup a different version of .NET, or to ensure the version of the SDK will be the version specified even when the 'ubuntu-latest' image is updated to use newer versions of .NET.
What are some alternatives?
When comparing setup-java and setup-dotnet you can also consider the following projects:
github-sponsors-readme-action - ❤️ This GitHub Action will automatically add your GitHub Sponsors to your README. It can be configured in multiple ways allowing you to display and breakdown your sponsors by price tier with fallbacks.
GitVersion - From git log to SemVer in no time
github-pages-deploy-action - 🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
setup-go - Set up your GitHub Actions workflow with a specific version of Go
toolkit - The GitHub ToolKit for developing GitHub Actions.
actions - A collection of GitHub Actions to accelerate your Gradle Builds on GitHub