[CI] some more fixes

parent 57f7aaa6
...@@ -25,7 +25,7 @@ deps: ...@@ -25,7 +25,7 @@ deps:
- node_modules/ - node_modules/
- .spago/ - .spago/
script: script:
- nix-env -i git #- nix-env -i git
- nix-shell shell.nix --run 'bun install --skip-builds' - nix-shell shell.nix --run 'bun install --skip-builds'
test: test:
...@@ -40,6 +40,7 @@ test: ...@@ -40,6 +40,7 @@ test:
script: script:
# find 0.14.5 purescript version here: # find 0.14.5 purescript version here:
# https://lazamar.co.uk/nix-versions/ # https://lazamar.co.uk/nix-versions/
- nix-env -i git #- nix-env -i git
- nix-shell shell.nix --run fix-bun
- nix-shell shell.nix --run 'bun install --skip-builds' - nix-shell shell.nix --run 'bun install --skip-builds'
- nix-shell shell.nix --run test-ps - nix-shell shell.nix --run test-ps
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
let let
easy-ps = import ./nix/easy-ps.nix { inherit pkgs; }; easy-ps = import ./nix/easy-ps.nix { inherit pkgs; };
# sometimes bun is broken because of better-sqlite3
fix-bun = pkgs.writeShellScriptBin "fix-bun" ''
#!/usr/bin/env bash
set -e
cd ./node_modules/better-sqlite3
bun install
'';
compile = pkgs.writeShellScriptBin "compile" '' compile = pkgs.writeShellScriptBin "compile" ''
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
...@@ -115,6 +124,7 @@ pkgs.mkShell { ...@@ -115,6 +124,7 @@ pkgs.mkShell {
build-zephyr build-zephyr
build build
compile compile
fix-bun
minify-bundle minify-bundle
repl repl
serve serve
......
Markdown is supported
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