Reformat code with better Fourmolu settings #10
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/ci.yaml | |
| - ./**/* | |
| jobs: | |
| build-sqlitedav: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, macos-15] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 10 # Necessary for git describe --tags | |
| - name: Fetch tags | |
| # Necessary according to | |
| # https://github.com/actions/checkout/issues/290 | |
| run: | | |
| git fetch --tags --force | |
| - if: ${{startsWith(matrix.os, 'ubuntu')}} | |
| name: Install deps | |
| run: | | |
| sudo apt-get update -y && \ | |
| sudo apt-get install -y libmagic-dev | |
| - name: Setup Stack | |
| uses: haskell/actions/setup@v1 | |
| with: | |
| enable-stack: true | |
| stack-no-global: true | |
| - name: Cache Stack build files | |
| uses: actions/cache@v2 | |
| with: | |
| path: | | |
| ~/.stack | |
| .stack-work | |
| key: >- | |
| ${{ runner.os }}-stack-${{ | |
| hashFiles('stack.yaml.lock', 'package.yaml') }} | |
| restore-keys: | | |
| ${{runner.os}}-stack | |
| - name: Test | |
| run: | | |
| stack test --ghc-options="-O2" | |
| - name: Install | |
| run: | | |
| stack install --ghc-options="-O2" | |
| - name: Upload ${{ runner.os }} Release | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| path: ~/.local/bin/sqlitedav | |
| name: sqlitedav_${{ runner.os }}_${{ runner.arch }} |