Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-platform
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Théophile Choutri
horizon-platform
Commits
eff75a36
There was an error fetching the commit references. Please try again later.
Commit
eff75a36
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
add cachix CI step
parent
8ca8d364
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cachix.dhall
+34
-0
34 additions, 0 deletions
.cachix.dhall
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
with
42 additions
and
0 deletions
.cachix.dhall
0 → 100644
+
34
−
0
View file @
eff75a36
let Prelude =
env:DHALL_PRELUDE
? https://raw.githubusercontent.com/dhall-lang/dhall-lang/v20.1.0/Prelude/package.dhall
sha256:26b0ef498663d269e4dc6a82b0ee289ec565d683ef4c00d0ebdd25333a5a3c98
let H =
https://gitlab.horizon-haskell.net/dhall/horizon-spec/-/raw/0.6/dhall/package.dhall
sha256:9a80164572526dc5350f105c8db0790fdf36634629b4cf03402ba14fd173d121
let toStep
: Text → Text
= λ(x : Text) →
"nix build --json .#${x} | jq -r '.[].outputs | to_entries[].value' | cachix push horizon"
let input =
Prelude.Map.keys
Text
H.HaskellPackage.Type
( merge
{ MakePackageSet =
λ(x : H.PackageSetExportSettings) → x.packageSet.packages
, MakeOverlay = λ(x : H.OverlayExportSettings) → x.overlay.packages
}
./horizon.dhall
)
let packages = Prelude.List.map Text Text toStep (input : List Text)
in Prelude.List.fold
Text
packages
Text
(λ(x : Text) → λ(y : Text) → x ++ "\n" ++ y)
""
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
8
−
0
View file @
eff75a36
stages
:
-
generate
-
check
-
cache
generate-flake-ci
:
stage
:
generate
...
...
@@ -16,3 +17,10 @@ flake-ci:
-
artifact
:
flake-ci.yml
job
:
generate-flake-ci
strategy
:
depend
cachix
:
stage
:
cache
only
:
refs
:
-
master
script
:
dhall --file .cachix.dhall | dhall text | bash
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment