<commit_before>name: Build
on:
  schedule:
    # Daily build.
    - cron: '30 8 * * *'
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        ghc: [ '8.4' , '8.6', '8.8', '8.10', '9.0']
        include:
          - os: windows-latest
            ghc: '9.0'
          - os: macos-latest
            ghc: '9.0'

    steps:
      - name: 'Setup'
        uses: haskell/actions/setup@v1
        with:
          ghc-version: ${{ matrix.ghc }}

      - name: Information
        run: |
          ghc --version
          cabal --version

      - name: Get the Repository
        uses: actions/checkout@v2

      - name: Submodules
        run: git submodule update --init libverse

      - name: Updating Cabal packages
        run: |
          cabal update

      - name: Build
        run: cabal build --minimize-conflict-set

      - name: Test
        run: cabal test

      - name: Benchmark
        run: cabal bench

      - name: Haddock
        run: cabal haddock

      - name: Check
        run: cabal check

      - name: Install
        run: cabal install

      - name: Build with tarball
        if: matrix.os == 'ubuntu-latest'
        run: |
          cabal sdist
          mkdir tarball-build
          mv dist-newstyle/*.tar.gz tarball-build
          cd tarball-build
          tar xzvf *.tar.gz --strip-components=1
          cabal build
          cabal test
          cabal haddock
          cabal check
          cabal install

      - name: Raaz information
        run: cabal run raaz -- info<commit_msg>remove cabal install from workflow<commit_after>name: Build
on:
  schedule:
    # Daily build.
    - cron: '30 8 * * *'
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        ghc: [ '8.4' , '8.6', '8.8', '8.10', '9.0']
        include:
          - os: windows-latest
            ghc: '9.0'
          - os: macos-latest
            ghc: '9.0'

    steps:
      - name: 'Setup'
        uses: haskell/actions/setup@v1
        with:
          ghc-version: ${{ matrix.ghc }}

      - name: Information
        run: |
          ghc --version
          cabal --version

      - name: Get the Repository
        uses: actions/checkout@v2

      - name: Submodules
        run: git submodule update --init libverse

      - name: Updating Cabal packages
        run: |
          cabal update

      - name: Build
        run: cabal build --minimize-conflict-set

      - name: Test
        run: cabal test

      - name: Benchmark
        run: cabal bench

      - name: Haddock
        run: cabal haddock

      - name: Check
        run: cabal check

      # Disable Install command.
      # - name: Install
      #   run: cabal install

      - name: Build with tarball
        if: matrix.os == 'ubuntu-latest'
        run: |
          cabal sdist
          mkdir tarball-build
          mv dist-newstyle/*.tar.gz tarball-build
          cd tarball-build
          tar xzvf *.tar.gz --strip-components=1
          cabal build
          cabal test
          cabal haddock
          cabal check

      - name: Raaz information
        run: cabal run raaz -- info
{'fraction_non_alphanumeric': 0.10245128849780012, 'fraction_numerical': 0.013199245757385292, 'mean_word_length': 1.3404411764705881, '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': '4477320', 'n_tokens_mistral': 1041, 'n_tokens_neox': 996, 'n_words': 280}