Skip to content

Commit a8411e8

Browse files
committed
Update validate pipeline
1 parent 7508b2f commit a8411e8

File tree

1 file changed

+1
-103
lines changed

1 file changed

+1
-103
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ defaults:
66
run:
77
shell: bash
88

9-
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
10-
concurrency:
11-
group: ${{ github.ref }}-${{ github.workflow }}
12-
cancel-in-progress: true
139

1410
# Note: This workflow file contains the required job "Validate post job". We are using path filtering
1511
# here to ignore PRs which only change documentation. This can cause a problem, see the workflow file
@@ -30,19 +26,6 @@ on:
3026
release:
3127
types:
3228
- created
33-
workflow_call:
34-
35-
# See https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#hackage-revisions
36-
workflow_dispatch:
37-
inputs:
38-
allow-newer:
39-
description: allow-newer line
40-
required: true
41-
type: string
42-
constraints:
43-
description: constraints line
44-
required: true
45-
type: string
4629

4730
env:
4831
# We choose a stable ghc version across all os's
@@ -70,18 +53,7 @@ jobs:
7053
# If you remove something from here, then add it to the old-ghcs job.
7154
# Also a removed GHC from here means that we are actually dropping
7255
# support, so the PR *must* have a changelog entry.
73-
ghc: ['9.10.1', '9.8.2', '9.6.4', '9.4.8', '9.2.8', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
74-
exclude:
75-
# corrupts GHA cache or the fabric of reality itself, see https://github.com/haskell/cabal/issues/8356
76-
- os: windows-latest
77-
ghc: '8.10.7'
78-
# lot of segfaults caused by ghc bugs
79-
- os: windows-latest
80-
ghc: '8.8.4'
81-
# it often randomly does "C:\Users\RUNNER~1\AppData\Local\Temp\ghcFEDE.c: DeleteFile "\\\\?\\C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\ghcFEDE.c": permission denied (Access is denied.)"
82-
- os: windows-latest
83-
ghc: '8.6.5'
84-
56+
ghc: ["9.2.8"]
8557
steps:
8658

8759
- name: Work around XDG directories existence (haskell-actions/setup#62)
@@ -211,65 +183,6 @@ jobs:
211183
run: sh validate.sh $FLAGS -s solver-benchmarks-run
212184

213185

214-
validate-old-ghcs:
215-
name: Validate old ghcs ${{ matrix.extra-ghc }}
216-
runs-on: ubuntu-latest
217-
needs: validate
218-
219-
strategy:
220-
matrix:
221-
extra-ghc: ['8.4.4', '8.2.2', '8.0.2']
222-
## GHC 7.10.3 does not install on ubuntu-22.04 with ghcup.
223-
## Older GHCs are not supported by ghcup in the first place.
224-
fail-fast: false
225-
226-
steps:
227-
228-
- uses: actions/checkout@v4
229-
230-
- name: Install prerequisites for old GHCs
231-
run: |
232-
sudo apt-get update
233-
sudo apt-get install libncurses5 libtinfo5
234-
235-
- name: Install extra compiler
236-
run: ghcup install ghc ${{ matrix.extra-ghc }}
237-
238-
- name: GHCup logs
239-
if: always()
240-
run: cat /usr/local/.ghcup/logs/*
241-
242-
- name: Install primary compiler
243-
uses: haskell-actions/setup@v2
244-
id: setup-haskell
245-
with:
246-
ghc-version: ${{ env.GHC_FOR_RELEASE }}
247-
cabal-version: latest
248-
249-
- name: GHC versions
250-
run: |
251-
ghc --version
252-
"ghc-${{ matrix.extra-ghc }}" --version
253-
254-
# As we are reusing the cached build dir from the previous step
255-
# the generated artifacts are available here,
256-
# including the cabal executable and the test suite
257-
- uses: actions/cache@v4
258-
with:
259-
path: |
260-
${{ steps.setup-haskell.outputs.cabal-store }}
261-
dist-*
262-
key: ${{ runner.os }}-${{ env.GHC_FOR_RELEASE }}-${{ github.sha }}
263-
restore-keys: ${{ runner.os }}-${{ env.GHC_FOR_RELEASE }}-
264-
265-
- name: Validate build
266-
run: sh validate.sh ${{ env.COMMON_FLAGS }} -s build
267-
268-
- name: "Validate lib-suite-extras --extra-hc ghc-${{ matrix.extra-ghc }}"
269-
env:
270-
EXTRA_GHC: ghc-${{ matrix.extra-ghc }}
271-
run: sh validate.sh ${{ env.COMMON_FLAGS }} --lib-only -s lib-suite-extras --extra-hc "${{ env.EXTRA_GHC }}"
272-
273186
build-alpine:
274187
name: Build statically linked using alpine
275188
runs-on: "ubuntu-latest"
@@ -419,19 +332,4 @@ jobs:
419332
cabal-head-Linux-static-x86_64.tar.gz
420333
cabal-head-macOS-x86_64.tar.gz
421334
422-
# We use this job as a summary of the workflow
423-
# It will fail if any of the previous jobs does it
424-
# This way we can use it exclusively in branch protection rules
425-
# and abstract away the concrete jobs of the workflow, including their names
426-
validate-post-job:
427-
if: always()
428-
name: Validate post job
429-
runs-on: ubuntu-latest
430-
# IMPORTANT! Any job added to the workflow should be added here too
431-
needs: [validate, validate-old-ghcs, build-alpine, dogfooding]
432335
433-
steps:
434-
- run: |
435-
echo "jobs info: ${{ toJSON(needs) }}"
436-
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
437-
run: exit 1

0 commit comments

Comments
 (0)