File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 AF_VERSION : " 3.10.0"
1515 AF_INSTALLER : " ArrayFire-v3.10.0_Linux_x86_64.sh"
1616 AF_URL : " https://arrayfire.s3.amazonaws.com/3.10.0/ArrayFire-v3.10.0_Linux_x86_64.sh"
17- AF_PREFIX : " /usr/local "
17+ AF_PREFIX : " /opt/arrayfire "
1818
1919 steps :
2020 - uses : actions/checkout@v4
2323 nix_path : nixpkgs=channel:nixpkgs-unstable
2424 - run : nix-channel --update
2525
26- - uses : actions/checkout@v4
27-
2826 - name : Nix channel update
2927 run : nix-channel --update
3028
@@ -38,12 +36,13 @@ jobs:
3836 wget -q "$AF_URL" -O "$AF_INSTALLER"
3937 chmod +x "$AF_INSTALLER"
4038 sudo "./$AF_INSTALLER" --exclude-subdir --prefix="$AF_PREFIX"
39+ echo /opt/arrayfire/lib64 > /etc/ld.so.conf.d/arrayfire.conf
40+ sudo ldconfig
4141
4242 - name : Update cabal package list
4343 run : cabal update
4444
4545 - name : Build
46- run : nix-shell -p ghc -p cabal-install --run 'cabal build'
46+ run : nix-shell -p ghc -p cabal-install --keep LD_LIBRARY_PATH -- run 'cabal build'
4747 env :
48- PATH : " /usr/local/bin:${{ env.PATH }}"
49- LD_LIBRARY_PATH : " /usr/local/lib"
48+ LD_LIBRARY_PATH : " /opt/arrayfire/lib:/opt/arrayfire/lib64"
You can’t perform that action at this time.
0 commit comments