From 86b9b1534bf79794ded3eda17751f4568e7ecb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alja=C5=BE=20Mur=20Er=C5=BEen?= Date: Wed, 7 Feb 2024 16:02:10 +0100 Subject: [PATCH] build: CI nix magic cache --- .github/workflows/publish.yml | 5 +++-- .github/workflows/test.yml | 1 + flake.nix | 3 --- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f0c324f..5c305e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,11 +12,12 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Build the nix shell - run: nix develop '.#minimal' --command cargo --version + run: nix develop --command cargo --version # publish - - run: nix develop '.#minimal' --command cargo publish --package connector_arrow + - run: nix develop --command cargo publish --package connector_arrow --verbose env: CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03b6219..99a278b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,7 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Build the nix shell run: nix develop --command just --version - name: Install Rust toolchain with rustup diff --git a/flake.nix b/flake.nix index fee1101..a78e754 100644 --- a/flake.nix +++ b/flake.nix @@ -40,8 +40,5 @@ devShells.default = pkgs.mkShell { buildInputs = essentials ++ dbs; }; - devShells.minimal = pkgs.mkShell { - buildInputs = with pkgs; [rustup]; - }; }); }