<commit_before>name: CI
on:
  push:
    branches:
    - master
    tags:
    - "v*"
  pull_request:

jobs:
  test:
    runs-on: ${{ matrix.OS }}
    name: ${{ matrix.TARGET }} Scala ${{ matrix.SCALA_VERSION }} JDK ${{ matrix.JDK }} ${{ matrix.OS }}
    strategy:
      fail-fast: false
      matrix:
        OS: ["ubuntu-latest"]
        JDK: ["8"]
        SCALA_VERSION: ["2.12"]
        TARGET: ["JVM", "Scala.JS", "Website"]
        include:
          - JDK: "8"
            SCALA_VERSION: "2.12"
            TARGET: "JVM"
            OS: "windows-latest"
          - JDK: "8"
            SCALA_VERSION: "2.13"
            TARGET: "JVM"
            OS: "ubuntu-latest"
          - JDK: "11"
            SCALA_VERSION: "2.12"
            TARGET: "JVM"
            OS: "ubuntu-latest"
          # Disabled for now, getting weird linking errors
          # - JDK: "8"
          #   SCALA_VERSION: "2.12"
          #   TARGET: "ScalaNative"
          #   OS: "ubuntu-16.04"
    steps:
    - name: Don't convert LF to CRLF during checkout
      if: runner.os == 'Windows'
      run: |
        git config --global core.autocrlf false
        git config --global core.eol lf
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
        submodules: true
    - uses: coursier/cache-action@v6
    - uses: laughedelic/coursier-setup@v1
      with:
        jvm: ${{ matrix.JDK }}
        apps: sbt-launcher:1.2.22
    - run: cs install --contrib amm-runner:0.3.1
    - run: .github/scripts/ci.sh
      shell: bash
      env:
        SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
        TARGET: ${{ matrix.TARGET }}

  publish:
    needs: test
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
          submodules: true
      - uses: coursier/cache-action@v6
      - run: .github/scripts/gpg-setup.sh
        env:
          PGP_SECRET: ${{ secrets.PGP_SECRET }}
      - uses: laughedelic/coursier-setup@v1
        with:
          jvm: 8
          apps: sbt-launcher:1.2.22
      - name: Release
        run: sbt +publishLocal ci-release<commit_msg>Force JNI use on CI<commit_after>name: CI
on:
  push:
    branches:
    - master
    tags:
    - "v*"
  pull_request:

jobs:
  test:
    runs-on: ${{ matrix.OS }}
    name: ${{ matrix.TARGET }} Scala ${{ matrix.SCALA_VERSION }} JDK ${{ matrix.JDK }} ${{ matrix.OS }}
    strategy:
      fail-fast: false
      matrix:
        OS: ["ubuntu-latest"]
        JDK: ["8"]
        SCALA_VERSION: ["2.12"]
        TARGET: ["JVM", "Scala.JS", "Website"]
        include:
          - JDK: "8"
            SCALA_VERSION: "2.12"
            TARGET: "JVM"
            OS: "windows-latest"
          - JDK: "8"
            SCALA_VERSION: "2.13"
            TARGET: "JVM"
            OS: "ubuntu-latest"
          - JDK: "11"
            SCALA_VERSION: "2.12"
            TARGET: "JVM"
            OS: "ubuntu-latest"
          # Disabled for now, getting weird linking errors
          # - JDK: "8"
          #   SCALA_VERSION: "2.12"
          #   TARGET: "ScalaNative"
          #   OS: "ubuntu-16.04"
    steps:
    - name: Don't convert LF to CRLF during checkout
      if: runner.os == 'Windows'
      run: |
        git config --global core.autocrlf false
        git config --global core.eol lf
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
        submodules: true
    - uses: coursier/cache-action@v6
    - uses: laughedelic/coursier-setup@v1
      with:
        jvm: ${{ matrix.JDK }}
        apps: sbt-launcher:1.2.22
    - run: cs install --contrib amm-runner:0.3.1
    - run: .github/scripts/ci.sh
      shell: bash
      env:
        SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
        TARGET: ${{ matrix.TARGET }}
        COURSIER_JNI: force

  publish:
    needs: test
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
          submodules: true
      - uses: coursier/cache-action@v6
      - run: .github/scripts/gpg-setup.sh
        env:
          PGP_SECRET: ${{ secrets.PGP_SECRET }}
      - uses: laughedelic/coursier-setup@v1
        with:
          jvm: 8
          apps: sbt-launcher:1.2.22
      - name: Release
        run: sbt +publishLocal ci-release
{'fraction_non_alphanumeric': 0.1323325635103926, 'fraction_numerical': 0.020785219399538105, 'mean_word_length': 1.5918611609814481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2848543', 'n_tokens_mistral': 1598, 'n_tokens_neox': 1484, 'n_words': 331}