Skip to content
Snippets Groups Projects
Commit f2802d9d authored by Daniel Firth's avatar Daniel Firth
Browse files

.gitlab-ci.yml: switch to matrix based config

parent 39083072
1 merge request!186.gitlab-ci.yml: switch to matrix based config
Pipeline #6630 passed with stage
in 28 seconds
stages: stages:
- build
- devour - devour
- generate
- packages
- cache
x86_64-linux:devour: build:
stage: devour stage: build
script: script:
- nix build github:srid/devour-flake#packages.x86_64-linux.default -L --no-link --print-out-paths --override-input flake . --keep-going - nix build .#packages.$SYSTEM.$PACKAGE -L
parallel:
aarch64-darwin:devour: matrix:
stage: devour - SYSTEM:
script: - aarch64-darwin
- nix build github:srid/devour-flake#packages.aarch64-darwin.default -L --no-link --print-out-paths --override-input flake . --keep-going - x86_64-linux
PACKAGE:
aarch64-linux:devour: - aeson
stage: devour - beam-postgres
script: - composite-base
- nix build github:srid/devour-flake#packages.aarch64-linux.default -L --no-link --print-out-paths --override-input flake . --keep-going - dhall
- hedgehog
- log-effectful
x86_64-linux:generate: - pandoc
stage: generate - persistent-postgresql
needs: ["x86_64-linux:devour"] - polysemy
script: - servant
- nix run "git+https://gitlab.horizon-haskell.net/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.5.0" > flake-ci.yml - souffle-haskell
when: on_failure - sydtest
artifacts: - tasty
paths: - wai-app-static
- flake-ci.yml - warp
- SYSTEM:
x86_64-linux:packages: - x86_64-linux
stage: packages PACKAGE:
needs: ["x86_64-linux:devour", "x86_64-linux:generate"] - llvm-hs
when: on_failure - streamly
trigger:
include:
- artifact: flake-ci.yml
job: x86_64-linux:generate
strategy: depend
aarch64-darwin:generate:
stage: generate
needs: ["aarch64-darwin:devour"]
script:
- nix run "git+https://gitlab.horizon-haskell.net/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.5.0" -- aarch64-darwin > flake-ci.yml
when: on_failure
artifacts:
paths:
- flake-ci.yml
aarch64-darwin:packages:
stage: packages
needs: ["aarch64-darwin:devour", "aarch64-darwin:generate"]
when: on_failure
trigger:
include:
- artifact: flake-ci.yml
job: aarch64-darwin:generate
strategy: depend
aarch64-linux:generate:
stage: generate
needs: ["aarch64-linux:devour"]
script:
- nix run "git+https://gitlab.horizon-haskell.net/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.5.0" -- aarch64-linux > flake-ci.yml
when: on_failure
artifacts:
paths:
- flake-ci.yml
aarch64-linux:packages:
stage: packages
needs: ["aarch64-linux:devour", "aarch64-linux:generate"]
when: on_failure
trigger:
include:
- artifact: flake-ci.yml
job: aarch64-linux:generate
strategy: depend
x86_64-linux:cachix:
stage: cache
rules:
- if: $CI_COMMIT_REF_PROTECTED == "true"
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"
aarch64-darwin:cachix:
stage: cache
rules:
- if: $CI_COMMIT_REF_PROTECTED == "true"
script:
- nix-shell -p cachix --command "nix build github:srid/devour-flake#packages.aarch64-darwin.default -L --no-link --print-out-paths --override-input flake . | xargs cat | cachix push horizon"
aarch64-linux:cachix:
stage: cache
rules:
- if: $CI_COMMIT_REF_PROTECTED == "true"
script:
- nix-shell -p cachix --command "nix build github:srid/devour-flake#packages.aarch64-linux.default -L --no-link --print-out-paths --override-input flake . | xargs cat | cachix push horizon"
...@@ -17,10 +17,14 @@ This package set has the following policy. ...@@ -17,10 +17,14 @@ This package set has the following policy.
* composite-base * composite-base
* dhall * dhall
* hedgehog * hedgehog
* log-effectful
* llvm-hs
* pandoc * pandoc
* persistent-postgresql * persistent-postgresql
* polysemy * polysemy
* servant * servant
* souffle-haskell
* streamly
* sydtest * sydtest
* tasty * tasty
* wai-app-static * wai-app-static
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment