Skip to content

Commit

Permalink
Install io_uring from a package manager in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Mar 25, 2024
1 parent 240c9f2 commit 25b8916
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
cabal: "3.10.2.1"
os: ubuntu-22.04
liburing: "liburing-2.1"
- ghc: "9.6.4"
cabal: "3.10.2.1"
os: ubuntu-22.04
liburing: "system"

steps:
- name: Checkout repository
Expand All @@ -52,8 +56,9 @@ jobs:
cabal-version: ${{ matrix.cabal }}
cabal-update: true

- name: Install liburing (on Linux)
id: setup-liburing
- name: Install (specific) liburing from source
id: setup-liburing-source
if: ${{ ! (matrix.liburing == 'system') }}
run: |
sudo apt-get update
sudo apt-get -y install pkg-config
Expand All @@ -70,6 +75,13 @@ jobs:
sudo rm -rf ./tmp
pkg-config --modversion liburing
- name: Install (newest) liburing from a package manager
id: setup-liburing-cloned
if: ${{ matrix.liburing == 'system' }}
run: |
sudo apt-get update
sudo apt-get -y install pkg-config liburing-dev
- name: Configure the build
run: |
cabal configure --enable-test --enable-benchmark --ghc-options="-Werror" --ghc-options="-fno-ignore-asserts"
Expand Down

0 comments on commit 25b8916

Please sign in to comment.