Skip to content

Commit

Permalink
Merge pull request #124 from H1rono/buildall-nix
Browse files Browse the repository at this point in the history
Buildall nix
  • Loading branch information
H1rono authored Jan 25, 2024
2 parents c53f2f0 + be40136 commit 696d53b
Show file tree
Hide file tree
Showing 6 changed files with 1,150 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .cspell-dict/tool-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ taplo
nixos
nixpkgs
numtide
ipetkov
oxalica
fenix
pkgs
stdenv
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@ env:
CARGO_UDEPS_VERSION: "0.1.43"

jobs:
build:
nix-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v24
with:
nix_path: "nixpkgs=channel:release-23.05"
- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Checks
run: nix flake check
- name: Build
run: nix build

coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -43,6 +59,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: target/coverage.lcov

check-deps:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
Loading

0 comments on commit 696d53b

Please sign in to comment.