Skip to content

Commit

Permalink
wip: gha test
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 24, 2024
1 parent 71bfaf1 commit 61e9b15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/baboon-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,13 @@ jobs:
- ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Install Nix (Mac)
if: matrix.preconfigured != true
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v5
if: matrix.preconfigured != true
with:
primary-key: nix-${{ matrix.target }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ matrix.target }}-
gc-max-store-size-linux: 1073741824
purge: true
purge-prefixes: cache-${{ matrix.target }}-
purge-created: 0
purge-primary-key: never
- uses: nixbuild/nix-quick-install-action@v28
- run: nix build --version
# - name: Install Nix (Mac)
# if: matrix.preconfigured != true
# uses: cachix/install-nix-action@v27
# with:
# nix_path: nixpkgs=channel:nixos-unstable
- name: Build (Mac)
run: |
./nix-rebuild.sh
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
description = "baboon build environment";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/24.05";

inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, flake-utils }:
Expand Down

0 comments on commit 61e9b15

Please sign in to comment.