Skip to content

Pin actions to hashes using pinact [workflow-enforcer] (#257) #657

Pin actions to hashes using pinact [workflow-enforcer] (#257)

Pin actions to hashes using pinact [workflow-enforcer] (#257) #657

Workflow file for this run

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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Install nix
uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac # 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
# ormolu-0.5.0.1
- uses: mrkkrp/ormolu-action@01e83f5d20f21a120aa5646f224d80032768765b # v14
with:
version: 0.5.0.1
extra-args: --no-cabal -o -XGHC2021