Skip to content

Commit

Permalink
Update CI (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
donatello authored Feb 10, 2022
1 parent c52f281 commit 193be59
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
42 changes: 25 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ name: CI
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
branches: [master]
push:
branches: [master]

# This ensures that previous jobs for the PR are canceled when the PR is
# updated.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

# Env vars for tests
env:
MINIO_ACCESS_KEY: minio
Expand All @@ -15,32 +22,32 @@ env:

jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
name: ${{ matrix.os }} / ghc-${{ matrix.ghc }} / cabal-${{ matrix.cabal }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.2"]
os: [ubuntu-latest, windows-latest] # Removed macos-latest due to cert issues.
cabal: ["3.6"]
ghc:
- "8.4.4"
- "8.6.5"
# - "9.0.1"
- "8.10.7"
- "8.8.4"
- "8.10.2"
exclude:
- os: macOS-latest
ghc: 8.8.4
- os: macOS-latest
ghc: 8.6.5
- os: windows-latest
ghc: 8.10.2
- os: windows-latest
ghc: 8.6.5
- "8.6.5"
# exclude:
# - os: macOS-latest
# ghc: 8.8.4
# - os: macOS-latest
# ghc: 8.6.5
# - os: windows-latest
# ghc: 8.10.7
# - os: windows-latest
# ghc: 8.6.5

steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'

- uses: actions/setup-haskell@v1.1.4
- uses: haskell/actions/setup@v1
id: setup-haskell-cabal
name: Setup Haskell
with:
Expand Down Expand Up @@ -123,9 +130,10 @@ jobs:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'

- uses: actions/setup-haskell@v1.1.4
- uses: haskell/actions/setup@v1
name: Setup Haskell Stack
with:
enable-stack: true
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}

Expand Down
2 changes: 1 addition & 1 deletion minio-hs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ common base-settings
, Network.Minio.JsonParser
build-depends: base >= 4.7 && < 5
, protolude >= 0.3 && < 0.4
, aeson >= 1.2
, aeson >= 1.2 && < 2
, base64-bytestring >= 1.0
, binary >= 0.8.5.0
, bytestring >= 0.10
Expand Down

0 comments on commit 193be59

Please sign in to comment.