From 34203d09c293b3d2e395b90c94f790065c1f1fe3 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Thu, 11 Jan 2024 08:13:26 -0500 Subject: [PATCH] Add a --dry-run build check of cabal.project.release - Cache of ~/.cabal/store not needed for --dry-run - Remove workaround for the new job only --- .github/workflows/quick-jobs.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/quick-jobs.yml b/.github/workflows/quick-jobs.yml index d79e092363f..19d4b5fd74f 100644 --- a/.github/workflows/quick-jobs.yml +++ b/.github/workflows/quick-jobs.yml @@ -124,4 +124,22 @@ jobs: - uses: actions/checkout@v4 - name: Are buildinfo docs up to date? run: make doc/buildinfo-fields-reference.rst + release-project: + name: Check Release Project + runs-on: ubuntu-latest + steps: + - name: Set PATH + run: | + echo "$HOME/.cabal/bin" >> $GITHUB_PATH + - name: ghcup + run: | + ghcup --version + ghcup config set cache true + ghcup install ghc --set recommended + ghcup install cabal --set latest + - name: Update Hackage index + run: cabal v2-update + - uses: actions/checkout@v4 + - name: Check release project + run: cabal build all --enable-tests --enable-benchmarks --dry-run --project-file=cabal.project.release --index-state="hackage.haskell.org HEAD"