Skip to content

Commit 067ea78

Browse files
author
Minh Tu K.Tran
authored
Update dotnet-desktop.yml
1 parent b28fc02 commit 067ea78

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,57 @@ jobs:
113113
with:
114114
name: MSIX Package
115115
path: ${{ env.Wap_Project_Directory }}\AppPackages
116+
- name: Setup Java JDK
117+
uses: actions/setup-java@v5.0.0
118+
with:
119+
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
120+
java-version: # optional
121+
# The path to the `.java-version` file. See examples of supported syntax in README file
122+
java-version-file: # optional
123+
# Java distribution. See the list of supported distributions in README file
124+
distribution:
125+
# The package type (jdk, jre, jdk+fx, jre+fx)
126+
java-package: # optional, default is jdk
127+
# The architecture of the package (defaults to the action runner's architecture)
128+
architecture: # optional
129+
# Path to where the compressed JDK is located
130+
jdkFile: # optional
131+
# Set this option if you want the action to check for the latest available version that satisfies the version spec
132+
check-latest: # optional
133+
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
134+
server-id: # optional, default is github
135+
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
136+
server-username: # optional, default is GITHUB_ACTOR
137+
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
138+
server-password: # optional, default is GITHUB_TOKEN
139+
# Path to where the settings.xml file will be written. Default is ~/.m2.
140+
settings-path: # optional
141+
# Overwrite the settings.xml file if it exists. Default is "true".
142+
overwrite-settings: # optional, default is true
143+
# GPG private key to import. Default is empty string.
144+
gpg-private-key: # optional
145+
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
146+
gpg-passphrase: # optional
147+
# Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".
148+
cache: # optional
149+
# The path to a dependency file: pom.xml, build.gradle, build.sbt, etc. This option can be used with the `cache` option. If this option is omitted, the action searches for the dependency file in the entire repository. This option supports wildcards and a list of file names for caching multiple dependencies.
150+
cache-dependency-path: # optional
151+
# Workaround to pass job status to post job step. This variable is not intended for manual setting
152+
job-status: # optional, default is ${{ job.status }}
153+
# The token used to authenticate when fetching version manifests hosted on github.com, such as for the Microsoft Build of OpenJDK. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
154+
token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }}
155+
# Name of Maven Toolchain ID if the default name of "${distribution}_${java-version}" is not wanted. See examples of supported syntax in Advanced Usage file
156+
mvn-toolchain-id: # optional
157+
# Name of Maven Toolchain Vendor if the default name of "${distribution}" is not wanted. See examples of supported syntax in Advanced Usage file
158+
mvn-toolchain-vendor: # optional
159+
160+
dotnet-install.ps1 [-Architecture <ARCHITECTURE>] [-AzureFeed]
161+
[-Channel <CHANNEL>] [-DryRun] [-FeedCredential]
162+
[-InstallDir <DIRECTORY>] [-JSonFile <JSONFILE>]
163+
[-NoPath] [-ProxyAddress] [-ProxyBypassList <LIST_OF_URLS>]
164+
[-ProxyUseDefaultCredentials] [-Quality <QUALITY>] [-Runtime <RUNTIME>]
165+
[-SkipNonVersionedFiles] [-UncachedFeed] [-KeepZip] [-ZipPath <PATH>] [-Verbose]
166+
[-Version <VERSION>]
167+
168+
Get-Help ./dotnet-install.ps1echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
169+
echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> ~/.bashrc

0 commit comments

Comments
 (0)