Skip to content

Commit

Permalink
Haskell workflow for liburing > 2.1 && < 2.6
Browse files Browse the repository at this point in the history
Also: build on ubuntu-20.04 and ubuntu-22.04
  • Loading branch information
jorisdral committed Mar 20, 2024
1 parent 031c35f commit cd9cd38
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ jobs:
matrix:
ghc: ["9.2.8", "9.4.8", "9.6.4", "9.8.2"]
cabal: ["3.10.2.1"]
os: [ubuntu-latest]
os: [ubuntu-latest] # ubuntu-latest = ubuntu-22.04
liburing: ["liburing-2.5"]
include:
- ghc: "9.6.4"
os: ubuntu-20.04
liburing: "liburing-2.1"
- ghc: "9.6.4"
os: ubuntu-20.04
liburing: "liburing-2.5"
- ghc: "9.6.4"
os: ubuntu-22.04
liburing: "liburing-2.1"

steps:
- name: Checkout repository
Expand All @@ -48,7 +59,7 @@ jobs:
cd tmp
git clone https://github.com/axboe/liburing.git
cd liburing
git checkout liburing-2.5
git checkout ${{ matrix.liburing }}
./configure --cc=gcc --cxx=g++
make -j$(nproc)
sudo make install
Expand All @@ -73,11 +84,10 @@ jobs:
cache-name: cache-cabal-build
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.liburing }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
${{ runner.os }}-${{ matrix.ghc }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-
${{ runner.os }}-${{ matrix.ghc }}-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.liburing }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.liburing }}-${{ env.cache-name }}-
- name: Install cabal dependencies
id: build-dependencies
Expand Down

0 comments on commit cd9cd38

Please sign in to comment.