Skip to content

Commit

Permalink
build: CI nix magic cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Feb 7, 2024
1 parent 91c281c commit 86b9b15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,5 @@
devShells.default = pkgs.mkShell {
buildInputs = essentials ++ dbs;
};
devShells.minimal = pkgs.mkShell {
buildInputs = with pkgs; [rustup];
};
});
}

0 comments on commit 86b9b15

Please sign in to comment.