Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP committed May 9, 2024
1 parent 0695309 commit 63f01bc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ on:
branches: [main]

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ['8.10.7', '9.0.2', '9.2.8', '9.4.8']
cabal: ['3.8']
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8"]
cabal: ["3.8"]
zk: ["3.4.14", "3.6.2"]
os: [ubuntu-latest, macOS-latest]

name: ghc-${{ matrix.ghc }} cabal-${{matrix.cabal}} on ${{ matrix.os }}
Expand All @@ -33,14 +34,15 @@ jobs:
- name: Install zookeeper-dev on ubuntu
if: runner.os == 'Linux'
# FIXME: use the same client version as the one in the matrix
run: sudo apt-get update && sudo apt-get install libzookeeper-mt-dev
- name: Install zookeeper-dev on osx
if: runner.os == 'macOS'
run: brew install zookeeper
run: brew install zookeeper@${{ matrix.zk }}

- name: Setup zookeeper server on ubuntu
if: runner.os == 'Linux'
run: docker run --name some-zookeeper -p 2182:2181 -d zookeeper
run: docker run --name some-zookeeper -p 2182:2181 -d zookeeper:${{ matrix.zk }}
- name: Setup zookeeper server on osx
if: runner.os == 'macOS'
run: |
Expand Down

0 comments on commit 63f01bc

Please sign in to comment.