Skip to content

Commit

Permalink
[CI] MacOS nix installation: add settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderGondek committed Mar 29, 2022
1 parent bd3e52e commit aece643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-bzl-projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ jobs:
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build all
run: ./nix-shell.sh -- --run 'cd projects/${{ matrix.project }}; bazel build //...'
1 change: 1 addition & 0 deletions scripts/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ verify_nix_daemon_config_compatibility() {
# said logic.
# Therefore "experimental-features = nix-command" are needed.

mkdir -p "${CACHE_ROOT}"
# Why not $(nix show-config)? It fails with cryptic 'access-tokens: command not found'
nix show-config --json > "${global_nix_conf_settings}" 2>/dev/null
# shellcheck disable=SC2181
Expand Down

0 comments on commit aece643

Please sign in to comment.