Update README.md #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Jars For Desktop Platforms | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
kotlin | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Clone Client Repository | |
uses: actions/checkout@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | |
with: | |
arguments: packageUberJarForCurrentOS | |
- name: Archive Linux Build | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linux-jar | |
path: desktop/build/compose/jars/*.jar | |
build-windows: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Clone Client Repository | |
uses: actions/checkout@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | |
with: | |
arguments: packageUberJarForCurrentOS | |
- name: Archive Windows Build | |
uses: actions/upload-artifact@v2 | |
with: | |
name: windows-jar | |
path: desktop/build/compose/jars/*.jar | |
build-osx: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Clone Client Repository | |
uses: actions/checkout@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | |
with: | |
arguments: packageUberJarForCurrentOS | |
- name: Archive MacOS Build | |
uses: actions/upload-artifact@v2 | |
with: | |
name: macos-jar | |
path: desktop/build/compose/jars/*.jar |