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 e7e8753
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ 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-22.04, ubuntu-20.04]
liburing: ["liburing-2.1", "liburing-2.5"]

steps:
- name: Checkout repository
Expand All @@ -48,7 +49,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 +74,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 e7e8753

Please sign in to comment.