File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ env :
14+ AF_VERSION : " 3.9.0"
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Install ArrayFire
20+ run : |
21+ apt-key adv --fetch-key https://repo.arrayfire.com/GPG-PUB-KEY-ARRAYFIRE-2020.PUB
22+ echo "deb [arch=amd64] https://repo.arrayfire.com/debian all main" | tee /etc/apt/sources.list.d/arrayfire.list
23+ apt update
24+ apt install arrayfire
25+
26+ - name : Set up Haskell
27+ uses : haskell-actions/setup@v2
28+ with :
29+ ghc-version : " 9.12"
30+ cabal-version : " latest"
31+
32+ - name : Cache cabal store
33+ uses : actions/cache@v4
34+ with :
35+ path : |
36+ ~/.cabal/packages
37+ ~/.cabal/store
38+ dist-newstyle
39+ key : ${{ runner.os }}-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project') }}
40+ restore-keys : |
41+ ${{ runner.os }}-cabal-
42+
43+ - name : Update cabal package list
44+ run : cabal update
45+
46+ - name : Build
47+ run : cabal build all
48+ env :
49+ LD_LIBRARY_PATH : /opt/arrayfire/lib64
You can’t perform that action at this time.
0 commit comments