withStage helper #637
Workflow file for this run
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: "Build" | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04, macos-12 ] | |
ghc: [ "ghc962" ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v3 | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: enter-shell | |
run: | | |
nix develop --print-build-logs .#${{ matrix.ghc }} | |
- name: build ghc-specter-plugin | |
run: | | |
nix build --print-build-logs .#${{ matrix.ghc }}.ghc-specter-plugin | |
- name: build ghc-specter-daemon | |
run: | | |
nix build --print-build-logs .#${{ matrix.ghc }}.ghc-specter-daemon | |
- name: build ghc-build-analyzer | |
run: | | |
nix build --print-build-logs .#${{ matrix.ghc }}.ghc-build-analyzer | |
check-format: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
# ormolu-0.5.0.1 | |
- uses: mrkkrp/ormolu-action@v14 | |
with: | |
version: 0.5.0.1 | |
extra-args: --no-cabal -o -XGHC2021 |