Merge pull request #238 from zhaofengli/srcignore
Exclude more paths from colmena.src to reduce rebuilds
This commit is contained in:
commit
b02d2d6ba7
5 changed files with 26 additions and 13 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -1,6 +1,5 @@
|
|||
name: Build
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
build:
|
||||
|
|
1
.github/workflows/linters.yml
vendored
1
.github/workflows/linters.yml
vendored
|
@ -1,7 +1,6 @@
|
|||
name: Linters
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
linters:
|
||||
|
|
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
@ -1,6 +1,5 @@
|
|||
name: Tests
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
tests:
|
||||
|
|
18
.srcignore
Normal file
18
.srcignore
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Exclusions from source distribution
|
||||
#
|
||||
# Files listed here will not be part of colmena.src
|
||||
|
||||
/.github
|
||||
/CNAME
|
||||
/renovate.json
|
||||
|
||||
/manual
|
||||
/integration-tests
|
||||
|
||||
/nix
|
||||
/default.nix
|
||||
/flake-compat.nix
|
||||
/package.nix
|
||||
/shell.nix
|
||||
|
||||
# vim: set ft=gitignore:
|
18
package.nix
18
package.nix
|
@ -1,18 +1,16 @@
|
|||
{ lib, stdenv, rustPlatform, installShellFiles, nix-eval-jobs }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, nix-gitignore
|
||||
, installShellFiles
|
||||
, nix-eval-jobs
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "colmena";
|
||||
version = "0.5.0-pre";
|
||||
|
||||
src = lib.cleanSourceWith {
|
||||
filter = name: type: !(type == "directory" && builtins.elem (baseNameOf name) [
|
||||
".github"
|
||||
"target"
|
||||
"manual"
|
||||
"integration-tests"
|
||||
]);
|
||||
src = lib.cleanSource ./.;
|
||||
};
|
||||
src = nix-gitignore.gitignoreSource [ ./.srcignore ] ./.;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
|
Loading…
Reference in a new issue