Skip to content

Commit

Permalink
Merge pull request #468 from haskell/mpj/housekeeping
Browse files Browse the repository at this point in the history
CI housekeeping
  • Loading branch information
michaelpj authored Jan 2, 2023
2 parents 5f13cf2 + dabe516 commit 36a6bc3
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 330 deletions.
1 change: 0 additions & 1 deletion .azure/linux-stack.bashrc

This file was deleted.

76 changes: 0 additions & 76 deletions .azure/linux-stack.yml

This file was deleted.

1 change: 0 additions & 1 deletion .azure/macos-stack.bashrc

This file was deleted.

77 changes: 0 additions & 77 deletions .azure/macos-stack.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .azure/windows-stack.bashrc

This file was deleted.

78 changes: 0 additions & 78 deletions .azure/windows-stack.yml

This file was deleted.

50 changes: 14 additions & 36 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Haskell CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:

Expand All @@ -9,27 +14,20 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ['9.2.4', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
os: [ubuntu-latest, macOS-latest, windows-latest]
ospath: [true, false]
exclude:
# newer 'entropy' doesn't work with old 'unix', and it doesn't have a correct version bound.
- ospath: true
ghc: 8.6.5
# "cabal build" always timeout
- ospath: true
ghc: 8.8.4
os: windows-latest
ghc: ['9.4.3', '9.2.5', '9.0.2', '8.10.7']
# Unlikely that we'll succeed on windows and fail on macos,
# including it is just burning CI time. But windows could have
# path or IO issues, so worth including
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.6'

- name: Cabal cache
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
Expand All @@ -38,32 +36,12 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Stack cache
uses: actions/cache@v1
env:
cache-name: cache-stack
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cabal update
run: cabal update
- name: Cabal configure
shell: bash
run: |
if [ ${{ matrix.ospath }} = "true" ]; then
cabal configure --flags="force-ospath"
fi
- name: Build using cabal
run: cabal build all
- name: Test
run: cabal test all
# stack build uses stack.yaml which actually uses ghc-8.10.7
- if: matrix.ghc == '8.10.7' && runner.os == 'Linux'
name: Build using stack
run: stack build

haskell_post_job:
runs-on: ubuntu-latest
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Nix

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
nix:
Expand All @@ -12,10 +16,10 @@ jobs:
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: cachix/install-nix-action@v16
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run "cabal update && cabal build all"
Expand Down
31 changes: 0 additions & 31 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ packages:
package lsp
flags: +demo

index-state: 2022-08-25T22:25:05Z
index-state: 2023-01-01T00:00:00Z

tests: True
benchmarks: True
Expand Down
Loading

0 comments on commit 36a6bc3

Please sign in to comment.