Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-plutus
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
package-sets
horizon-plutus
Commits
f152ada3
Commit
f152ada3
authored
1 year ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
replace .cachix.dhall with devour-fake
parent
c51a5684
Branches
Branches containing commit
1 merge request
!7
replace .cachix.dhall with devour-fake
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cachix.dhall
+0
-39
0 additions, 39 deletions
.cachix.dhall
.gitlab-ci.yml
+9
-7
9 additions, 7 deletions
.gitlab-ci.yml
with
9 additions
and
46 deletions
.cachix.dhall
deleted
100644 → 0
+
0
−
39
View file @
c51a5684
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.10.0/horizon-spec/package.dhall
let toStep
: Text → Text
= λ(x : Text) →
"nix build --accept-flake-config --json .#${x} | jq -r '.[].outputs | to_entries[].value' | cachix push horizon"
let toEchoStep
: Text → Text
= λ(x : Text) → "echo \"${toStep x}\""
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 toEchoStep (input : List Text)
in "("
++ Prelude.List.fold
Text
packages
Text
(λ(x : Text) → λ(y : Text) → x ++ ";" ++ y)
""
++ ") | parallel -j 16"
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
9
−
7
View file @
f152ada3
stages
:
stages
:
-
generate
-
generate
-
check
-
flake
-
cache
-
cache
generate-flake-ci
:
generate-flake-ci
:
stage
:
generate
stage
:
generate
script
:
nix run "git+https://gitlab.homotopic.tech/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.2.0" > flake-ci.yml
script
:
-
nix run "git+https://gitlab.nixica.dev/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.4.1" > flake-ci-x86_64-linux.yml
artifacts
:
artifacts
:
paths
:
paths
:
-
flake-ci.yml
-
flake-ci
-x86_64-linux
.yml
flake
-ci
:
x86_64-linux
-ci
:
stage
:
check
stage
:
flake
trigger
:
trigger
:
include
:
include
:
-
artifact
:
flake-ci.yml
-
artifact
:
flake-ci
-x86_64-linux
.yml
job
:
generate-flake-ci
job
:
generate-flake-ci
strategy
:
depend
strategy
:
depend
...
@@ -24,4 +25,5 @@ cachix:
...
@@ -24,4 +25,5 @@ cachix:
refs
:
refs
:
-
master
-
master
-
cachix
-
cachix
script
:
nix-shell -p jq cachix parallel --command 'dhall --file .cachix.dhall | dhall text | bash'
script
:
-
nix-shell -p cachix --command "nix build github:srid/devour-flake -L --no-link --print-out-paths --override-input flake . | xargs cat | cachix push horizon"
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