Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ignore] #10088

Closed

[ignore] #10088

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
4ce1a7a
Find build-tool installed programs before programs in path
alt-romes Mar 1, 2024
5478627
Merge pull request #9773 from haskell/mergify/bp/3.12/pr-9762
mergify[bot] Mar 4, 2024
efdea9b
Update .cabal files
ffaf1 Mar 1, 2024
03cda27
Merge pull request #9779 from haskell/mergify/bp/3.12/pr-9761
mergify[bot] Mar 5, 2024
90af1ad
Add changelog/release notes for Cabal 3.12
ffaf1 Mar 7, 2024
880831f
Merge pull request #9785 from ffaf1/3.12-changelog
mergify[bot] Mar 7, 2024
698339c
Make `check` recognise `main-is` in conditional branches (#9768)
ffaf1 Mar 9, 2024
b75671b
Merge pull request #9792 from haskell/mergify/bp/3.12/pr-9768
mergify[bot] Mar 11, 2024
4dd2719
Update licence list
ffaf1 Mar 6, 2024
e867d30
Merge pull request #9818 from ffaf1/3.12-licences
mergify[bot] Mar 22, 2024
7d140c5
Bump version numbers for 3.12.0.0 (#9788)
ffaf1 Mar 26, 2024
83d8dc5
CI validate-old-ghcs: pin to haskell-actions/[email protected]
andreasabel Mar 31, 2024
135750b
Merge pull request #9870 from haskell/mergify/bp/3.12/pr-9859
mergify[bot] Apr 6, 2024
f2b9475
Bump time upper bound to acccomodate 1.14
bgamari Mar 27, 2024
8728fc4
Merge pull request #9869 from haskell/mergify/bp/3.12/pr-9848
mergify[bot] Apr 6, 2024
7bc5006
Conform BSD-2-Clause and BSD-3-Clause text to SPDX
ffaf1 Mar 15, 2024
0a16cf7
Merge pull request #9874 from haskell/mergify/bp/3.12/pr-9813
mergify[bot] Apr 9, 2024
6b488a8
Fix cabal-install in the presence of extra-packages
alt-romes Feb 16, 2024
af9d5df
Show provenance of import constraint
geekosaur Apr 9, 2024
bd0d321
Merge pull request #9877 from haskell/mergify/bp/3.12/pr-9578
mergify[bot] Apr 9, 2024
c9e6b39
Fix `<more complex packages>` link lost in doc/cabal-package-descript…
chansey97 Mar 1, 2024
c21150d
Merge pull request #9876 from haskell/mergify/bp/3.12/pr-9765
mergify[bot] Apr 10, 2024
00e8c2b
Merge branch '3.12' into mergify/bp/3.12/pr-9719
ffaf1 Apr 10, 2024
1aff4f4
Support GHC2024 (fixes #9736)
adamgundry Mar 9, 2024
5ab8bf8
Merge pull request #9880 from haskell/mergify/bp/3.12/pr-9791
mergify[bot] Apr 10, 2024
f5e8e60
Merge branch '3.12' into mergify/bp/3.12/pr-9719
ffaf1 Apr 10, 2024
b5ac2f7
Merge pull request #9875 from haskell/mergify/bp/3.12/pr-9719
mergify[bot] Apr 10, 2024
192fa5a
Update setupMinCabalVersionConstraint
ffaf1 Mar 20, 2024
bc0fb92
Merge pull request #9894 from haskell/mergify/bp/3.12/pr-9882
mergify[bot] Apr 16, 2024
354224c
Redesign 'cabal path' command to account for projects (#9583)
fendor Apr 14, 2024
b6c1ed6
Merge pull request #9893 from haskell/mergify/bp/3.12/pr-9583
mergify[bot] Apr 16, 2024
7cd0615
Simplify job names
chreekat Apr 5, 2024
5e6ad86
Only use ghcup where needed
chreekat Apr 5, 2024
155541d
Update ci-images pin and bootstrap versions
chreekat Apr 5, 2024
cb290f1
Rework Darwin jobs
chreekat Apr 5, 2024
983fdcd
Merge pull request #9898 from haskell/mergify/bp/3.12/pr-9865
mergify[bot] Apr 16, 2024
fd82dbe
3.12 changelogs updated (#9908)
ffaf1 Apr 18, 2024
cb8dcc4
update zlib.cabal location
geekosaur Apr 22, 2024
f687159
Merge pull request #9916 from haskell/mergify/bp/3.12/pr-9915
mergify[bot] Apr 23, 2024
9c63caa
3.12 changelog fixup (#9922)
ffaf1 Apr 23, 2024
71f6949
Fix release notes grammar (#9924)
ffaf1 Apr 23, 2024
464e7a7
Support GHC 9.12
ffaf1 Apr 24, 2024
ee32274
Merge pull request #9932 from haskell/mergify/bp/3.12/pr-9928
mergify[bot] Apr 24, 2024
59fd014
Fix changelog/readme (backport #9935) (#9936)
mergify[bot] Apr 25, 2024
527daee
Tell zlib not to use pkg-config in GitLab CI.
chreekat Mar 4, 2024
56fb1dc
Merge pull request #9939 from haskell/mergify/bp/3.12/pr-9775
Mikolaj Apr 26, 2024
d871c1e
CI: force MacOS jobs to use Intel runners (macos-13) (backport #9949)…
mergify[bot] Apr 29, 2024
f48c4e2
Add `initialBuildSteps` removal notice (#9943)
ffaf1 Apr 29, 2024
9b92dd2
Merge pull request #9960 from haskell/mergify/bp/3.12/pr-9943
mergify[bot] Apr 30, 2024
e144a43
update idna per dependabot / CVE-2024-3651
geekosaur Apr 16, 2024
fdfa4f0
Merge pull request #9910 from haskell/mergify/bp/3.12/pr-9896
mergify[bot] May 1, 2024
2334372
Update cabal-install to allow time 1.14
geekosaur Mar 27, 2024
5b89d82
Add a warning when an env file is created (#9705)
tomsmeding Apr 16, 2024
017ed01
Merge pull request #9907 from haskell/mergify/bp/3.12/pr-9851
mergify[bot] May 1, 2024
4852cf0
Merge branch '3.12' into mergify/bp/3.12/pr-9705
mergify[bot] May 1, 2024
31eb97a
Merge pull request #9895 from haskell/mergify/bp/3.12/pr-9705
mergify[bot] May 1, 2024
815b141
CI: stop validating GHC 7 (backport #9886) (#9957) (#9957)
mergify[bot] May 1, 2024
14d9bed
Reinstate 'initialBuildSteps' function
sheaf Apr 30, 2024
aa968f8
Merge pull request #9961 from haskell/mergify/bp/3.12/pr-9950
mergify[bot] May 1, 2024
3041b3c
How to use Cabal in Windows
jasagredo Feb 17, 2024
45dd397
Merge pull request #9977 from haskell/mergify/bp/3.12/pr-9723
mergify[bot] May 5, 2024
857c0eb
docs: correct references to location of global store
adamgundry Mar 21, 2024
e97daaf
Merge pull request #9972 from haskell/mergify/bp/3.12/pr-9832
mergify[bot] May 6, 2024
b39a331
Touch up release notes for cabal-install 3.12.0.0 pre-release
Mikolaj May 2, 2024
debbb78
Merge pull request #9981 from haskell/mergify/bp/3.12/pr-9963
mergify[bot] May 6, 2024
5b4d226
update `base` bounds for desupported ghc 8.2
geekosaur May 2, 2024
4193f06
Merge pull request #9980 from haskell/mergify/bp/3.12/pr-9964
mergify[bot] May 10, 2024
efc8eb1
Allow using different Cabal library versions for `cabal-install` test…
mpickering Jan 30, 2024
d7ce36f
Merge pull request #9999 from haskell/mergify/bp/3.12/pr-9671
mergify[bot] May 13, 2024
ea05e10
Text file, newlines at end of files (backport #9804) (#10007)
mergify[bot] May 13, 2024
edc131f
Use package groups (backport #9565) (#10006)
mergify[bot] May 13, 2024
22feacc
Remove stale see 'withSourceCopyDir'
philderbeast Feb 28, 2024
8a9c46e
Merge pull request #10000 from haskell/mergify/bp/3.12/pr-9750
mergify[bot] May 13, 2024
145644c
Testsuite: pass -i argument to runghc invocations
sheaf Mar 4, 2024
ece298a
Merge pull request #10003 from haskell/mergify/bp/3.12/pr-9518
mergify[bot] May 13, 2024
340e35b
Add a --dry-run build check of cabal.project.release
philderbeast Jan 11, 2024
b2a46f9
Don't override project with command line
philderbeast Mar 6, 2024
76f23ff
Check with both pinned & latest hackage
philderbeast Mar 14, 2024
54da7ef
Merge pull request #10004 from haskell/mergify/bp/3.12/pr-9610
mergify[bot] May 14, 2024
1a47f4d
resolve fix-whitespace issue with license files
ulysses4ever May 13, 2024
b710193
CI changelogs: switch to XDG, fix cache key
andreasabel Mar 27, 2024
0227d22
Merge pull request #10008 from haskell/mergify/bp/3.12/pr-9849
mergify[bot] May 14, 2024
b602a4c
Remove skipIfGhcVersion "== 9.6.3"
philderbeast Feb 28, 2024
61db6cc
Merge pull request #10002 from haskell/mergify/bp/3.12/pr-9749
mergify[bot] May 14, 2024
62c9cf6
Ignore testdb/intree generated files
philderbeast Mar 26, 2024
1eb4252
Merge pull request #10009 from haskell/mergify/bp/3.12/pr-9847
mergify[bot] May 14, 2024
a06f4e9
Add required-fields to changelog.d config (backport #9810) (#10005)
mergify[bot] May 14, 2024
347ccbc
Bump index-state in the release project file
ulysses4ever May 14, 2024
6ee1b0a
Merge pull request #10011 from haskell/ulysses4ever/bp/3.12/pr-9897
mergify[bot] May 15, 2024
519a0e3
Add “Add default-language” suggestion
ffaf1 Mar 1, 2024
1b5ff69
Merge pull request #10023 from haskell/mergify/bp/3.12/pr-9766
mergify[bot] May 16, 2024
8deb30e
testsuite: Add some unit tests for #9466 #9467 (backport #9468) (#10…
mergify[bot] May 16, 2024
df33ffd
offline flag disables `source-repository-package` sync
peterbecich Mar 4, 2024
9d95ec8
Merge pull request #10021 from haskell/mergify/bp/3.12/pr-9771
mergify[bot] May 16, 2024
0169cfe
Only use -Werror in validate
alt-romes Apr 5, 2024
90e47c6
Merge pull request #10022 from haskell/mergify/bp/3.12/pr-9867
mergify[bot] May 20, 2024
e62b6bb
update jinja2 per CVE-2024-34064
geekosaur May 17, 2024
934f084
Merge pull request #10038 from haskell/mergify/bp/3.12/pr-10030
mergify[bot] May 21, 2024
435afcd
Show abbreviated mixed versions with suffix
philderbeast Mar 20, 2024
df2c3f4
Merge pull request #10025 from haskell/mergify/bp/3.12/pr-9824
mergify[bot] May 21, 2024
1cda7e1
Improve bad cabal-version error message (#9754)
tbidne Mar 3, 2024
9ab5faf
Merge pull request #10024 from haskell/mergify/bp/3.12/pr-9754
mergify[bot] May 22, 2024
6ad3d94
generate doc/requirements.txt (#10031)
geekosaur May 21, 2024
ea11920
Merge pull request #10039 from haskell/mergify/bp/3.12/pr-10031
mergify[bot] May 22, 2024
c6b2f1f
Recommend using latest cabal-install (backport #10013) (#10028)
mergify[bot] May 22, 2024
ae8776e
ci: Fix quick-jobs GHC version to 9.6
ulysses4ever May 22, 2024
f2999b3
Fix #9815: fix caching for quick-jobs CI (XDG, cache keys) (backport …
mergify[bot] May 23, 2024
b935691
Rename projects to have `.project` extension (backport #9958) (#10040)
mergify[bot] May 23, 2024
643cd64
PackageTests/NewUpdate: fix skipping flaky tests
bacchanalia May 19, 2024
5cd189c
Merge pull request #10045 from bacchanalia/zz/fix-flaky-tests-3.12
mergify[bot] May 23, 2024
acf9de7
testsuite: Refactor withShorterPathForNewBuildStore (backport #9505) …
mergify[bot] May 30, 2024
c16b7dc
fix: Make newSemaphoreJobControl respect verbosity (#10062)
mergify[bot] May 31, 2024
a437d82
More consistently pass --package-db flag to tests (backport #9954) (#…
mergify[bot] Jun 3, 2024
78e9ee0
CI: add GHC 9.10 (#9914) (#10058)
mergify[bot] Jun 3, 2024
fc9de61
Fix #8141 Don't refer to 'custom-setup' as 'optional' (#10073)
mergify[bot] Jun 6, 2024
e9de0dd
Bump to hlint-3.8 (backport #9959) (#10074)
mergify[bot] Jun 6, 2024
a0a820f
Add docs for list-bin support of scripts (#10077)
mergify[bot] Jun 6, 2024
42b93b7
CI: install changelog-d from bindist (backport #10048) (#10053)
mergify[bot] Jun 7, 2024
639928f
Fix --program-suffix resulting in invalid symlink (backport #10056) (…
mergify[bot] Jun 7, 2024
e80632a
Downgrade NoLibraryFound from an error to a warning (backport #9926) …
mergify[bot] Jun 7, 2024
2d8d7ef
Fix #10042 Don't recommend deprecated/removed 'extensions:' field (#1…
mergify[bot] Jun 7, 2024
a3c047d
Allow whitespace in target selectors (#10083)
mergify[bot] Jun 8, 2024
4175a28
Render project configs in provenance message (#10084)
mergify[bot] Jun 8, 2024
3c04d39
Two fixes to multi repl command (backport #10017) (#10085)
mergify[bot] Jun 8, 2024
f613d12
cabal-install: extract url scheme checks
frasertweedale Jun 9, 2024
3cb1ea4
cabal-install: refactor and document transport checks
frasertweedale Jun 9, 2024
943fb50
cabal-install: allow Basic authentication in curl transport
frasertweedale Jun 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap.skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Bootstrap Skip
# to the docs, since these jobs take a long time to complete without providing any benefit.
# We therefore use path-filtering in the workflow triggers for the bootstrap jobs, namely
# "paths-ignore: doc/**". But the "Bootstrap post job" is a required job, therefore a PR cannot
# be merged unless the "Bootstrap post job" completes succesfully, which it doesn't do if we
# be merged unless the "Bootstrap post job" completes succesfully, which it doesn't do if we
# filter it out.
#
# The solution: We use a second job with the same name which always returns the exit code 0.
Expand Down
24 changes: 7 additions & 17 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
ghc: ["8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.6.4", "9.8.1"]
ghc: ["9.0.2", "9.2.8", "9.4.8", "9.6.4", "9.8.2"]
include:
- os: macos-latest
ghc: "9.2.8"
Expand All @@ -52,28 +52,18 @@ jobs:
restore-keys: bootstrap-${{ runner.os }}-${{ matrix.ghc }}-20221115-

- uses: actions/checkout@v4
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}

- name: bootstrap.py
run: |
GHC_VERSION=${{ matrix.ghc }}
ghcup --version
ghcup config set cache true
ghcup install ghc $GHC_VERSION

# Fetch the bootstrap sources (we use linux dependencies also on macos)
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc $GHC_VERSION) -d bootstrap/linux-$GHC_VERSION.json fetch
python3 bootstrap/bootstrap.py -d bootstrap/linux-$GHC_VERSION.json fetch

# Bootstrap using the bootstrap sources
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc $GHC_VERSION) --bootstrap-sources bootstrap-sources.tar.gz
python3 bootstrap/bootstrap.py --bootstrap-sources bootstrap-sources.tar.gz

- name: Smoke test
run: |
Expand Down
44 changes: 10 additions & 34 deletions .github/workflows/changelogs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Assorted
name: Changelogs

on:
push:
Expand All @@ -25,41 +25,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set PATH
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- uses: actions/cache@v3
with:
path: ~/.cabal/store
key: linux-store-changelogs
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo mkdir -p /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
# Cannot install it from tarball due to
# https://github.com/haskell/cabal/issues/7360
- uses: actions/checkout@v4
with:
repository: "fgaz/changelog-d"
path: "changelog-d"

- name: Install changelog-d
run: |
pushd changelog-d
cabal v2-install
popd
- uses: actions/checkout@v4
curl --create-dirs -o "$HOME/.local/bin/changelog-d" "https://codeberg.org/fgaz/changelog-d/releases/download/v1.0/changelog-d-v1.0-x86_64-linux"
chmod +x "$HOME/.local/bin/changelog-d"
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Checkout cabal sources
uses: actions/checkout@v4

- name: Run changelog-d
run: |
changelog-d changelog.d
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: haskell-actions/hlint-setup@v2
with:
version: "3.5"
version: "3.8"
- uses: haskell-actions/hlint-run@v2
with:
path: "."
Expand Down
161 changes: 109 additions & 52 deletions .github/workflows/quick-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,87 +14,109 @@ on:
types:
- created

env:
GHC_FOR_QUICK_JOBS: 9.6.5

jobs:
meta:
name: Meta checks
runs-on: ubuntu-latest
env:
cabal_build: >-
cabal build --builddir=dist-newstyle-meta --project-file=cabal.meta.project
gen-cabal-macros
gen-paths-module
gen-spdx
gen-spdx-exc
# This job is not run in a container, any recent GHC should be fine
steps:
- name: Set PATH
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- uses: actions/cache@v3
with:
path: ~/.cabal/store
key: linux-store-meta
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage index
run: cabal v2-update
- name: Install alex
run: cabal v2-install alex --constraint='alex ==3.2.7.3'
- uses: actions/checkout@v4
- name: Generate build plan for correct cache key
run: ${{ env.cabal_build }} --dry-run
- name: Restore cached dependencies
uses: actions/cache/restore@v4
id: cache
with:
path: ~/.local/state/cabal
key: linux-store-meta-${{ hashfiles('dist-newstyle-meta/cache/plan.json') }}
restore-keys: linux-store-meta-
- name: Build tools
run: ${{ env.cabal_build }}
- name: Regenerate files
run: |
make -B lexer
make -B spdx
make -B templates
- name: Check that diff is clean
run: |
git status > /dev/null
git diff-files -p --exit-code
- name: Cache dependencies
uses: actions/cache/save@v4
if: always() && steps.cache.outputs.cache-hit != 'true'
with:
path: ~/.local/state/cabal
key: ${{ steps.cache.outputs.cache-primary-key }}

doctest:
name: Doctest Cabal
runs-on: ubuntu-latest
steps:
- name: Set PATH
# It is complicated to get a proper cache key for the dependencies of a package
# (here: doctest) that we just `cabal install`.
# So, as a heuristics we update the cache once per day.
# Updating it with each run would be an alternative, but we a short of cache space,
# and this would generate too many new caches.
- name: Use date as cache key
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- uses: actions/cache@v3
echo "DATE=$(date +'%Y-%m-%d')" >> "${GITHUB_ENV}"
- name: Restore cached dependencies
uses: actions/cache/restore@v4
id: cache
with:
path: ~/.cabal/store
key: linux-store-doctest
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
path: ~/.local/state/cabal
key: linux-store-doctest-${{ env.DATE }}
restore-keys: linux-store-doctest
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc --set recommended
ghcup install cabal --set latest
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v4
- name: Install doctest
run: make doctest-install
- name: Doctest
run: make doctest
- name: Cache dependencies
if: always() && steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.local/state/cabal
key: ${{ steps.cache.outputs.cache-primary-key }}

buildinfo:
name: Check Field Syntax Reference
runs-on: ubuntu-latest
env:
cabal_build: cabal build buildinfo-reference-generator
steps:
- name: Set PATH
run: |
Expand All @@ -103,25 +125,60 @@ jobs:
with:
path: ~/.cabal/store
key: linux-store-buildinfo-doc-diff
# See https://github.com/haskell/cabal/pull/8739
- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc --set recommended
ghcup install cabal --set latest
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v4
- name: Generate build plan for correct cache key
run: ${{ env.cabal_build }} --dry-run
- name: Restore cached dependencies
uses: actions/cache/restore@v4
id: cache
with:
path: ~/.local/state/cabal
key: linux-store-buildinfo-doc-diff-${{ hashfiles('dist-newstyle/cache/plan.json') }}
restore-keys: linux-store-buildinfo-doc-diff
- name: Build buildinfo-reference-generator
run: ${{ env.cabal_build }}
- name: Are buildinfo docs up to date?
run: make doc/buildinfo-fields-reference.rst
- name: Cache dependencies
uses: actions/cache/save@v4
if: always() && steps.cache.outputs.cache-hit != 'true'
with:
path: ~/.local/state/cabal
key: ${{ steps.cache.outputs.cache-primary-key }}

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 $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage Index
run: cabal v2-update
- uses: actions/checkout@v4
- name: Check Release with Pinned Hackage
run: cabal build all --dry-run --project-file=cabal.release.project
- name: Check Release with Latest Hackage
run: cabal build all --dry-run --project-file=cabal.release.project --index-state="hackage.haskell.org HEAD"
10 changes: 8 additions & 2 deletions .github/workflows/users-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- 'doc/Makefile'
- 'doc/pyproject.toml'
- 'doc/requirements.in'
- 'doc/requirements.txt'
- 'doc/*.inc'
- 'doc/*.py'
- 'doc/*.rst'
Expand All @@ -26,7 +25,6 @@ on:
- 'doc/Makefile'
- 'doc/pyproject.toml'
- 'doc/requirements.in'
- 'doc/requirements.txt'
- 'doc/*.inc'
- 'doc/*.py'
- 'doc/*.rst'
Expand Down Expand Up @@ -58,6 +56,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install pip-compile
run: |
pip install pip-tools

- name: Create requirements.txt from requirements.in
run: |
make users-guide-requirements

# Subsumed by make users-guide
# - name: Install dependencies
# run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Validate Skip
# to the docs, since these jobs take a long time to complete without providing any benefit.
# We therefore use path-filtering in the workflow triggers for the validate jobs, namely
# "paths-ignore: doc/**". But the "Validate post job" is a required job, therefore a PR cannot
# be merged unless the "Validate post job" completes succesfully, which it doesn't do if we
# be merged unless the "Validate post job" completes succesfully, which it doesn't do if we
# filter it out.
#
# The solution: We use a second job with the same name which always returns the exit code 0.
Expand Down
Loading
Loading