Skip to content

Add nix build to CI (#67) #46

Add nix build to CI (#67)

Add nix build to CI (#67) #46

Workflow file for this run

name: ArrayFire CI
on:
push:
branches:
- master
pull_request:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Nix channel --update
run: nix-channel --update
- name: Cabal update
run: nix develop --command bash -c 'cabal update'
- name: Build and run tests
run: nix develop --command bash -c 'cabal install hspec-discover && cabal test'