Skip to content

Commit

Permalink
CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Nov 29, 2024
1 parent 9f84a86 commit 6da127a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- 414-LTS
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Changelog check

on:
pull_request:
branches: [master]
branches: [414-LTS]
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- master
- 414-LTS
jobs:
# tests:
# runs-on: ubuntu-latest
Expand Down
100 changes: 15 additions & 85 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 6 additions & 62 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nix-ocaml/nix-overlays";
merlin5_2 = {
url = "github:ocaml/merlin/main";
flake = false;
};
merlin5_1 = {
url = "github:ocaml/merlin/501";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
merlin4_14 = {
url = "github:ocaml/merlin/v4.18-414";
flake = false;
};
};
Expand All @@ -30,7 +26,7 @@
});
dune-release =
prev.dune-release.overrideAttrs (_: { doCheck = false; });
ocamlPackages = prev.ocamlPackages.overrideScope' (oself: osuper:
ocamlPackages = prev.ocamlPackages.overrideScope (oself: osuper:
let
fixPreBuild = o: {
propagatedBuildInputs = o.propagatedBuildInputs ++ [ oself.pp ];
Expand Down Expand Up @@ -58,33 +54,24 @@
in rec {
jsonrpc = buildDunePackage (basePackage // {
pname = "jsonrpc";
doCheck = false;
propagatedBuildInputs = with pkgs.ocamlPackages; [ ];
});

lsp = buildDunePackage (basePackage // {
pname = "lsp";
doCheck = false;
propagatedBuildInputs = with pkgs.ocamlPackages; [
jsonrpc
yojson
ppx_yojson_conv_lib
uutf
];
checkInputs = let p = pkgs.ocamlPackages;
in [
p.stdune
p.cinaps
p.ppx_expect
p.ppx_yojson_conv
(ocamlformat pkgs)
];
in [ p.cinaps p.ppx_expect p.ppx_yojson_conv (ocamlformat pkgs) ];
});

ocaml-lsp = with pkgs.ocamlPackages;
buildDunePackage (basePackage // {
pname = package;
doCheck = false;
checkInputs = let p = pkgs.ocamlPackages;
in [
p.ppx_expect
Expand Down Expand Up @@ -137,64 +124,21 @@
overlays = [ (ocamlVersionOverlay ocaml) (overlay merlin) ];
inherit system;
};
<<<<<<< HEAD
pkgs_5_1 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_1) inputs.merlin5_1;
pkgs_5_2 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_2) inputs.merlin5_2;
localPackages_5_1 = makeLocalPackages pkgs_5_1;
localPackages_5_2 = makeLocalPackages pkgs_5_2;
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
pkgs_4_14 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_4_14) inputs.merlin4_14;
pkgs_5_2 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_2) inputs.merlin5_2;
localPackages_4_14 = makeLocalPackages pkgs_4_14;
localPackages_5_2 = makeLocalPackages pkgs_5_2;
=======
pkgs_4_14 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_4_14) inputs.merlin4_14;
pkgs_5_1 =
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_1) inputs.merlin5_1;
localPackages_4_14 = makeLocalPackages pkgs_4_14;
localPackages_5_1 = makeLocalPackages pkgs_5_1;
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
devShell = localPackages: nixpkgs:
nixpkgs.mkShell {
buildInputs = [ nixpkgs.ocamlPackages.utop ];
inputsFrom =
builtins.map (x: x.overrideAttrs (p: n: { doCheck = true; }))
(builtins.attrValues localPackages);
inputsFrom = builtins.attrValues localPackages;
};
in {
<<<<<<< HEAD
packages = (localPackages_5_2 // {
default = localPackages_5_2.ocaml-lsp;
ocaml_5_1 = localPackages_5_1;
});
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
packages =
(localPackages_5_2 // { default = localPackages_5_2.ocaml-lsp; });
=======
packages =
(localPackages_4_14 // { default = localPackages_4_14.ocaml-lsp; });
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))

devShells = {
<<<<<<< HEAD
default = devShell localPackages_5_2 pkgs_5_2;
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
ocaml4_11 = devShell localPackages_4_14 pkgs_4_14;

default = devShell localPackages_5_2 pkgs_5_2;
=======
default = devShell localPackages_4_14 pkgs_4_14;

ocaml5_1 = devShell localPackages_5_1 pkgs_5_1;
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))

ocaml5_1 = devShell localPackages_5_1 pkgs_5_1;

release = pkgsWithoutOverlays.mkShell {
buildInputs = [ pkgsWithoutOverlays.dune-release ];
};
Expand Down

0 comments on commit 6da127a

Please sign in to comment.