Commit Graph

226 Commits

Author SHA1 Message Date
Andrea Bedini
cbd0c5da8f
Minimal test suite (#81)
* Minimal test suite

- Add support for urls with file: schema; both absolute (file:/path) and
  relative (file:path) paths are supported.

- Log curl invocation in case of failure

- Rename fetchRemoteAsset to fetchURL

- Add verbosity flag

- Bump GHC to 9.4.7

- Bump flake inputs

* Apply suggestions from code review

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Add short option '-v' for '--verbosity'

* Whitespace

* Add comment explaining why the dot

* Rename withFixture to inTemporaryDirectoryWithFixture

* Small refactor of PrepareSource

* Rename TarballSource to URISource

- Move sourceUrl to Foliage.Meta.packageVersionSourceToUri

* Simplify inTemporaryDirectoryWithFixture

* Document tar and cp flags

* Reformat

---------

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2023-09-15 12:18:30 +08:00
Andrea Bedini
1c06741cc8 Reorganise GH workflows 2023-09-14 15:53:59 +08:00
Andrea Bedini
c11fe72425 Add fourmolu to the nix devshell
Use that in the CI
2023-09-14 15:53:59 +08:00
Andrea Bedini
cc610620d6 Formatting with fourmolu 2023-09-14 15:53:59 +08:00
Michael Peyton Jones
b18d165702
Merge pull request #83 from input-output-hk/andrea/fix-flake-utils
Fix flake-utils input and flake lock bump
2023-09-13 11:14:44 +01:00
Andrea Bedini
870efd8f73 Flake lock bump 2023-09-13 15:11:59 +08:00
Andrea Bedini
9388975cb6 Use flake-utils from numtide 2023-09-13 15:11:45 +08:00
Andrea Bedini
ea683454f9 Disable aarch64-linux because Hydra 2023-09-11 13:18:05 +08:00
Andrea Bedini
e6de3b29bc Retry few times if curl fails 2023-09-11 13:18:05 +08:00
Andrea Bedini
d265965889 Bump workflows/nix.yml a bit 2023-09-11 13:18:05 +08:00
Andrea Bedini
bae0096f26 Improve some instances of Show 2023-09-11 13:18:05 +08:00
Andrea Bedini
c1d2b0e0b2 Update flake config 2023-09-11 13:18:05 +08:00
Andrea Bedini
637b266700 Handle curl failure 2023-09-11 13:18:05 +08:00
Andrea Bedini
31d2455f44 Make curl fail on HTTP code >=400 2023-09-11 13:18:05 +08:00
Yvan Sraka
1a307b9f44 Delete release.yml 2023-08-08 13:50:54 +08:00
Yvan Sraka
d80b52de22
Merge pull request #74 from input-output-hk/yvan-sraka-patch-1-1
Use `DeterminateSystems/magic-nix-cache-action`
2023-07-28 11:21:50 +02:00
Yvan Sraka
e598d3b6f6
Update nix.yml 2023-07-25 16:35:35 +02:00
Andrea Bedini
68a0109a09
Merge pull request #72 from bgamari/wip/T71 2023-07-03 19:38:08 +08:00
Ben Gamari
7b86fadffd flake: Wrap foliage executable with needed dependencies
Previously the `app` outputs of the flake were not usable in a minimal
environment as `foliage` requires `curl` and `patch` in `PATH`. Ensure
that these are available.

Fixes #71.
2023-06-30 12:47:53 -04:00
Andrea Bedini
763e77028c
Merge pull request #70 from input-output-hk/yvan-sraka-patch-1
Add macOS artifacts to GitHub releases
2023-06-22 16:04:13 +08:00
Yvan Sraka
317cabf8e0
Update release.yml 2023-06-20 11:57:17 +02:00
Yvan Sraka
d68add56b4
Add macOS artifacts to GitHub releases
This fix https://github.com/input-output-hk/foliage/issues/62 but require https://github.com/input-output-hk/foliage/issues/47 to be addressed first!
2023-06-18 12:43:17 +02:00
Andrea Bedini
f25603f3c6
Merge pull request #69 from bgamari/main 2023-06-16 08:20:01 +08:00
Ben Gamari
1cc2db12ac foliage: Force FileInfo
Unfortunately hackage-security constructs these using lazy bytestrings
and they are therefore liable to hold open fds longer than necessary,
resulting in fd exhaustion.

Fixes another manifestation of #35.
2023-06-15 11:16:59 -04:00
Andrea Bedini
a938062863
Merge pull request #68 from input-output-hk/yvan-sraka-patch-1
Update `release.yml`
2023-06-09 12:43:38 +08:00
Yvan Sraka
48856e3ce0
Update release.yml
This is tested and working … but only for `x86_64-linux`, `flake.nix` should be updated to support other platforms :)
2023-06-08 14:32:16 +02:00
Andrea Bedini
8a549d6b9f
Merge pull request #67 from input-output-hk/yvan-sraka-patch-1
Update `release.yml`
2023-06-06 21:38:05 +08:00
Yvan Sraka
eb060cd480
Update release.yml 2023-06-06 14:05:42 +02:00
Andrea Bedini
7474ed7e4c
Merge pull request #66 from amesgen/fix-deprecations
Fix `preferred-versions` format
2023-06-06 10:00:30 +08:00
amesgen
9833056b60
Fix preferred-versions format
Co-authored-by: Andrea Bedini <andrea@andreabedini.com>
2023-06-05 14:49:55 +02:00
Andrea Bedini
0f408ad7bc
Update release.yml 2023-06-05 20:33:26 +08:00
Andrea Bedini
e36b704aa8
Update release.yml 2023-06-05 20:31:20 +08:00
Andrea Bedini
7855aaa238
Merge pull request #64 from input-output-hk/62-build-foliage-binaries 2023-06-04 14:25:14 +08:00
Andrea Bedini
4a11e81c9c
Merge pull request #65 from input-output-hk/andrea/fix-dependencies-again 2023-06-01 07:10:56 +08:00
Andrea Bedini
dce8dade86 Another go at the dependencies 2023-06-01 00:35:17 +08:00
Yvan Sraka
ad5b4b7e20
Fix #62: Build foliage binaries
Implemented a GA using Nix for automatic build and publish a GitHub release from the latest `main` branch commit.

Consider using git tags for more controlled versioning and releases.
2023-05-31 10:22:59 +02:00
Andrea Bedini
32c033cd57
Merge pull request #63 from input-output-hk/andrea/hackage-urls
Implement revision urls, drop "index/" url
2023-05-30 16:56:27 +08:00
Andrea Bedini
c300284fbf Add url for latest cabal file 2023-05-30 16:46:46 +08:00
Andrea Bedini
0d0603b0d3 Stick to GHC minor versions 2023-05-30 13:27:51 +08:00
Andrea Bedini
f294fcf6eb Implement revision urls, drop "index/" url 2023-05-30 12:42:19 +08:00
Andrea Bedini
c9d3a0bbb9
Merge pull request #61 from input-output-hk/website-package-dependencies
Add build dependencies to package pages
2023-05-29 15:39:16 +08:00
Andrea Bedini
56f8b81838 Display conditionals correctly 2023-05-29 15:27:22 +08:00
Andrea Bedini
e51484454e Display build dependencies better 2023-05-29 13:41:39 +08:00
Andrea Bedini
1f899fe101 Add build dependencies to package pages
Closes #59
2023-05-29 13:41:07 +08:00
Andrea Bedini
eb0e97d919
Merge pull request #60 from input-output-hk/tidy-up
Tidy-up
2023-05-24 11:50:19 +08:00
Andrea Bedini
dd3934c99d Backtrack on previous change an use cabal-install for sdists 2023-05-24 11:35:34 +08:00
Andrea Bedini
42a2e7f52f Merge remote-tracking branch 'origin/main' into tidy-up 2023-05-23 14:37:11 +08:00
Andrea Bedini
a32da0b49c Tidy-up
- Bump Cabal-syntax to 3.10
- Drop Distribution.PackageDescription.FieldGrammar.Copy
- Drop cabal-install dependency
- Tidy up bounds
2023-05-23 14:31:46 +08:00
Andrea Bedini
9a1eaafe73
Merge pull request #56 from yvan-sraka/show-public-keys
Fix #13: create keys should show the public keys
2023-05-15 17:54:23 +08:00
Andrea Bedini
8fef0cd997 Fix up, print root keys but create the other keys too 2023-05-15 17:51:26 +08:00