Optimized equals() implementation of KeyStroke and Mode classes #51
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
on: | |
push: | |
branches: | |
- master | |
env: | |
JAVA_DISTRIBUTION: zulu | |
JAVA_VERSION: 21.0.1+12 | |
GRADLE_OPTS: -Dorg.gradle.daemon=false | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
submodules: true | |
- name: Install JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: distZip --info | |
- name: Extract Release Variables | |
id: extract_release_variables | |
shell: bash | |
run: | | |
echo "tag_name=$(find build/distributions/ControllerBuddy-*.zip -maxdepth 1 -print0 | xargs -0 -I filename basename -s .zip filename | sed s/-windows-x86-64//)" >> $GITHUB_OUTPUT | |
echo "archive_path=$(find build/distributions/ControllerBuddy-*.zip -maxdepth 1 -print0)" >> $GITHUB_OUTPUT | |
- name: Tag Commit | |
uses: tvdias/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ steps.extract_release_variables.outputs.tag_name }} | |
- name: Release | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.extract_release_variables.outputs.tag_name }} | |
draft: false | |
prerelease: false | |
files: ${{ steps.extract_release_variables.outputs.archive_path }} | |
linux: | |
needs: windows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
submodules: true | |
- name: Install JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: distTar --info | |
- name: Extract Release Variables | |
id: extract_release_variables | |
shell: bash | |
run: | | |
echo "tag_name=$(find build/distributions/ControllerBuddy-*.tgz -maxdepth 1 -print0 | xargs -0 -I filename basename -s .tgz filename | sed s/-linux-x86-64//)" >> $GITHUB_OUTPUT | |
echo "archive_path=$(find build/distributions/ControllerBuddy-*.tgz -maxdepth 1 -print0)" >> $GITHUB_OUTPUT | |
- name: Release | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.extract_release_variables.outputs.tag_name }} | |
draft: false | |
prerelease: false | |
files: ${{ steps.extract_release_variables.outputs.archive_path }} |