Skip to content

Commit 4e60920

Browse files
committed
Use only one checkout.
1 parent 46d8c19 commit 4e60920

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
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
@@ -23,8 +23,6 @@ jobs:
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"

0 commit comments

Comments
 (0)