Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/build.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
types: [ opened, reopened, labeled, synchronize ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v19
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Cache Rust Artifacts
uses: actions/cache@v4
env:
cache-name: cache-rust-artifacts
with:
path: |
/home/runner/.cargo
target
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock', '**/.cargo/config.toml', '**/rust-toolchain.toml', '**/flake.nix', '**/flake.lock') }}
- name: Build
run: |
eval "$(nix print-dev-env)"

set -x
cargo fmt --check
cargo clippy
cargo test

integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
test:
- nix-build-hello
- nix-build-header
- nix-build-incremental
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v19
with:
extra-conf: |-
extra-experimental-features = dynamic-derivations ca-derivations recursive-nix
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Build NixOS test driver
run: nix build .#driver-${{ matrix.test }}
- name: Run integration tests
run: nix run -L .#test-${{ matrix.test }}
17 changes: 9 additions & 8 deletions crates/deps-infer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ name = "deps-infer"
version.workspace = true
edition.workspace = true
description = "Dependency inference for C/C++"
license = "MIT"

[dependencies]
anyhow = "1.0"
clap = { version = "4.5", features = ["derive"] }
include-graph = { git = "https://github.com/hinshun/igraph", branch = "performance-improvements" }
n2 = { git = "https://github.com/hinshun/n2", branch = "feature/minimal-pub", default-features = false }
shell-words = "1.1.0"
tracing = { version = "0.1"}
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3.18", features = [
"json",
"matchers",
"time",
"tracing",
"env-filter",
"regex",
]}
"json",
"matchers",
"time",
"tracing",
"env-filter",
"regex",
] }
1 change: 1 addition & 0 deletions crates/nix-libstore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "nix-libstore"
version.workspace = true
edition.workspace = true
description = "Core Nix datastructures"
license = "MIT"

[dependencies]
anyhow = "1.0"
Expand Down
1 change: 1 addition & 0 deletions crates/nix-ninja-task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "nix-ninja-task"
version.workspace = true
edition.workspace = true
description = "Nix derivation builder for nix-ninja"
license = "MIT"

[dependencies]
anyhow = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion crates/nix-ninja/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name = "nix-ninja"
version.workspace = true
edition.workspace = true
description = "Ninja compatible build system using Nix backend"
license = "MIT"

[dependencies]
anyhow = { version = "1.0", features = [ "backtrace" ] }
anyhow = { version = "1.0", features = ["backtrace"] }
clap = { version = "4.4", features = ["derive", "env"] }
deps-infer = { path = "../deps-infer" }
include-graph = { git = "https://github.com/hinshun/igraph", branch = "performance-improvements" }
Expand Down
1 change: 1 addition & 0 deletions crates/nix-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "nix-tool"
version.workspace = true
edition.workspace = true
description = "Helper to spawn Nix commands"
license = "MIT"

[dependencies]
anyhow = "1.0"
Expand Down
2 changes: 2 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[licenses]
allow = ["MIT", "Apache-2.0", "BSD-3-Clause", "MPL-2.0", "Unicode-3.0"]
6 changes: 0 additions & 6 deletions examples/hello/main.cpp

This file was deleted.

5 changes: 0 additions & 5 deletions examples/incremental/util.c

This file was deleted.

35 changes: 28 additions & 7 deletions flake.lock

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

Loading