File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919 steps :
2020 - uses : actions/checkout@v4
21+ - uses : cachix/install-nix-action@v27
22+ with :
23+ nix_path : nixpkgs=channel:nixpkgs-unstable
24+ - run : nix-channel --update
25+
26+ - uses : actions/checkout@v4
27+
28+ - name : Nix channel update
29+ run : nix-channel --update
30+
31+ - name : Cabal install
32+ run : nix-env -iA pkgs.cabal-install -f .
2133
2234 - name : Install ArrayFire prerequisites
2335 run : |
@@ -30,28 +42,11 @@ jobs:
3042 chmod +x "$AF_INSTALLER"
3143 sudo "./$AF_INSTALLER" --exclude-subdir --prefix="$AF_PREFIX"
3244
33- - name : Set up Haskell
34- uses : haskell-actions/setup@v2
35- with :
36- ghc-version : " 9.12"
37- cabal-version : " latest"
38-
39- - name : Cache cabal store
40- uses : actions/cache@v4
41- with :
42- path : |
43- ~/.cabal/packages
44- ~/.cabal/store
45- dist-newstyle
46- key : ${{ runner.os }}-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project') }}
47- restore-keys : |
48- ${{ runner.os }}-cabal-
49-
5045 - name : Update cabal package list
5146 run : cabal update
5247
5348 - name : Build
54- run : cabal build all
49+ run : nix-shell -p ghc -p cabal-install --run 'cabal build'
5550 env :
5651 PATH : " /usr/local/bin:${{ env.PATH }}"
5752 LD_LIBRARY_PATH : " /usr/local/lib"
You can’t perform that action at this time.
0 commit comments