diff --git a/.github/workflows/rust.yml b/.github/workflows/build_nix.yml similarity index 53% rename from .github/workflows/rust.yml rename to .github/workflows/build_nix.yml index 9fd45e0..e9d6c29 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/build_nix.yml @@ -1,4 +1,4 @@ -name: Rust +name: CI on: push: @@ -6,17 +6,16 @@ on: pull_request: branches: [ "main" ] -env: - CARGO_TERM_COLOR: always - jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + + - name: Install Nix + uses: cachix/install-nix-action@v26 + + - name: Build tars + run: nix build + diff --git a/README.md b/README.md index bf0006e..c3835b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # tars -[![Rust](https://github.com/OldUser101/tars/actions/workflows/rust.yml/badge.svg)](https://github.com/OldUser101/tars/actions/workflows/rust.yml) +[![Rust](https://github.com/OldUser101/tars/actions/workflows/build_nix.yml/badge.svg)](https://github.com/OldUser101/tars/actions/workflows/build_nix.yml) [![Crates.io](https://img.shields.io/crates/v/tars-bin.svg)](https://crates.io/crates/tars-bin) ![License](https://img.shields.io/crates/l/tars-bin.svg?branch=main)