<commit_before># This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Release

on:
  workflow_dispatch:
    inputs:
      version:
        description: 'Release Version'
        required: true

jobs:
  release:

    runs-on: ubuntu-latest
    env:
      INSTALL4J_DIR: "install4j/install4j8.0.8"

    steps:
      - uses: actions/checkout@v2
      
      - name: Cache Install4j
        id: cache-install4j
        uses: actions/cache@v2.1.3
        with:
          path: $HOME/$INSTALL4J_DIR
          key: $INSTALL4J_DIR
          
      - name: Cache Bundled JRE
        id: cache-jre
        uses: actions/cache@v2.1.3
        with:
          path: $HOME/.install4j8/jres/windows-amd64-15.0.1.tar.gz
          key: 15.0.1

      - name: Set up JDK 15
        uses: actions/setup-java@v1
        with:
          java-version: 15.0.1
          java-package: jdk+fx

      - name: Grant execute permission for gradlew
        run: chmod +x gradlew

      - name: Run Checks
        run: xvfb-run --auto-servernum ./gradlew --stacktrace -PjavafxPlatform=linux check
        env:
          JAVA_TOOL_OPTIONS: "-Dprism.verbose=true -Dprism.order=sw"

      - name: Download Install4j
        if: steps.cache-install4j.outputs.cache-hit != 'true'
        run: |
            mkdir -p "$HOME/install4j"
            curl https://download-gcdn.ej-technologies.com/install4j/install4j_unix_8_0_8.tar.gz -o "$HOME/install4j/install4j8.tar.gz"
            tar xzf "$HOME/install4j/install4j8.tar.gz" -C "$HOME/install4j"
            
      - name: Download Bundled JRE
        if: steps.cache-jre.outputs.cache-hit != 'true'
        run: |
            mkdir -p "$HOME/.install4j8/jres/"
            curl https://content.faforever.com/jre/windows-amd64-15.0.1.tar.gz -o "$HOME/.install4j8/jres/windows-amd64-15.0.1.tar.gz"

      - name: Build Windows Files
        run: |
          ./gradlew -Pversion=${{ github.event.inputs.version }} \
          -PjavafxPlatform=win \
          -Pinstall4jHomeDir=$HOME/$INSTALL4J_DIR \
          -Pinstall4jLicense=${{ secrets.INSTALL4J_LICENSE }} \
          --info \
          --stacktrace \
          buildInstall4jMediaFiles

      - name: Build Linux Files
        run: |
          ./gradlew -Pversion=${{ github.event.inputs.version }} \
          -PjavafxPlatform=linux \
          -Pinstall4jHomeDir=$HOME/$INSTALL4J_DIR \
          -Pinstall4jLicense=${{ secrets.INSTALL4J_LICENSE }} \
          --stacktrace \
          buildInstall4jMediaFiles

      - name: Create Draft Release
        id: create_release
        uses: actions/create-release@v1
        env:<commit_msg>Remove cache from release workflow<commit_after># This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Release

on:
  workflow_dispatch:
    inputs:
      version:
        description: 'Release Version'
        required: true

jobs:
  release:

    runs-on: ubuntu-latest
    env:
      INSTALL4J_DIR: "install4j/install4j8.0.8"

    steps:
      - uses: actions/checkout@v2

          #      - name: Cache Install4j
          #        id: cache-install4j
          #        uses: actions/cache@v2.1.3
          #        with:
          #          path: $HOME/$INSTALL4J_DIR
          #          key: $INSTALL4J_DIR

      #      - name: Cache Bundled JRE
      #        id: cache-jre
      #        uses: actions/cache@v2.1.3
      #        with:
      #          path: $HOME/.install4j8/jres/windows-amd64-15.0.1.tar.gz
      #          key: 15.0.1

      - name: Set up JDK 15
        uses: actions/setup-java@v1
        with:
          java-version: 15.0.1
          java-package: jdk+fx

      - name: Grant execute permission for gradlew
        run: chmod +x gradlew

      - name: Run Checks
        run: xvfb-run --auto-servernum ./gradlew --stacktrace -PjavafxPlatform=linux check
        env:
          JAVA_TOOL_OPTIONS: "-Dprism.verbose=true -Dprism.order=sw"

      - name: Download Install4j
        #        if: steps.cache-install4j.outputs.cache-hit != 'true'
        run: |
            mkdir -p "$HOME/install4j"
            curl https://download-gcdn.ej-technologies.com/install4j/install4j_unix_8_0_8.tar.gz -o "$HOME/install4j/install4j8.tar.gz"
            tar xzf "$HOME/install4j/install4j8.tar.gz" -C "$HOME/install4j"
            
      - name: Download Bundled JRE
        #        if: steps.cache-jre.outputs.cache-hit != 'true'
        run: |
            mkdir -p "$HOME/.install4j8/jres/"
            curl https://content.faforever.com/jre/windows-amd64-15.0.1.tar.gz -o "$HOME/.install4j8/jres/windows-amd64-15.0.1.tar.gz"

      - name: Build Windows Files
        run: |
          ./gradlew -Pversion=${{ github.event.inputs.version }} \
          -PjavafxPlatform=win \
          -Pinstall4jHomeDir=$HOME/$INSTALL4J_DIR \
          -Pinstall4jLicense=${{ secrets.INSTALL4J_LICENSE }} \
          --info \
          --stacktrace \
          buildInstall4jMediaFiles

      - name: Build Linux Files
        run: |
          ./gradlew -Pversion=${{ github.event.inputs.version }} \
          -PjavafxPlatform=linux \
          -Pinstall4jHomeDir=$HOME/$INSTALL4J_DIR \
          -Pinstall4jLicense=${{ secrets.INSTALL4J_LICENSE }} \
          --stacktrace \
          buildInstall4jMediaFiles

      - name: Create Draft Release
        id: create_release
        uses: actions/create-release@v1
        env:
{'fraction_non_alphanumeric': 0.11496707599216943, 'fraction_numerical': 0.027762947143619862, 'mean_word_length': 1.8029925187032418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2618880', 'n_tokens_mistral': 1906, 'n_tokens_neox': 1808, 'n_words': 341}