Configure Renovate #221
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
name: categorifier-c | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
nix-build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc: | |
- "ghc8107" | |
- "ghc901" | |
experimental: [false] | |
include: | |
- ghc: "ghc921" | |
os: ubuntu-latest | |
experimental: true | |
- ghc: "ghcHEAD" | |
os: ubuntu-latest | |
experimental: true | |
steps: | |
- name: Install nix | |
uses: cachix/install-nix-action@v16 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Checkout repositiory code | |
uses: actions/checkout@v3 | |
- name: List files | |
run: | | |
ls ${{ github.workspace }} | |
- name: build | |
run: | | |
nix build --print-build-logs .#${{ matrix.ghc }}_all || ${{ matrix.experimental }} | |
# We currently want to maintain at least non-nix build with up-to-date hackage index to check | |
# the traditional builds keeps working. | |
cabal-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ghc: ["8.10.1", "8.10.2", "8.10.4", "8.10.7", "9.0.1", "9.0.2"] | |
env: | |
CONFIG: "--enable-tests --enable-benchmarks" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell/actions/setup@v1 | |
id: setup-haskell-cabal | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: "3.6.0.0" | |
- run: cabal v2-update | |
- run: cabal v2-freeze $CONFIG | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
dist-newstyle | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | |
- run: cabal v2-build all $CONFIG | |
hlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell/actions/hlint-setup@v2 | |
with: | |
version: '3.4' | |
- uses: haskell/actions/hlint-run@v2 | |
with: | |
path: '["./"]' | |
fail-on: status | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: mrkkrp/ormolu-action@v5 |