~sumner/pr-tracker

8f5bcddd8523403dc55dbb4056336369d9e497b2 — Sumner Evans 4 months ago dfb3518
ci: add automated build
2 files changed, 22 insertions(+), 2 deletions(-)

A .build.yml
M shell.nix
A .build.yml => .build.yml +18 -0
@@ 0,0 1,18 @@
image: nixos/unstable
secrets:
  # SSH Deploy Key
  - f219888a-80af-4275-a777-89e8c7d277f0
environment:
  PROJECT_NAME: pr-tracker
triggers:
  - action: email
    condition: failure
    to: Sumner Evans <me@sumnerevans.com>
artifacts:
  - pr-tracker/target/debug/pr-tracker
tasks:
  - build: |
      cd ${PROJECT_NAME}
      nix-shell \
        --arg forCi true \
        --command "cargo build"

M shell.nix => shell.nix +4 -2
@@ 1,3 1,4 @@
{ forCi ? false }:
let
  pkgs = import <nixpkgs> { };
in


@@ 8,11 9,12 @@ with pkgs; mkShell {
    libgit2
    openssl
    pkgconfig
    systemd
  ] ++ (pkgs.lib.optionals (!forCi) [
    rnix-lsp
    rust-analyzer
    s6-networking
    systemd
    zlib
  ];
  ]);
  shellHook = ''export CFG_DISABLE_CROSS_TESTS=1'';
}