Skip to content

Commit

Permalink
use gcc on linux and clang on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 3, 2024
1 parent b4ab0c7 commit 74ae98d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-nix-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0

- name: Run checks
run: nix flake -L check
run: nix build -L .?submodules=1#packages.x86_64-linux.all-gcc
env:
NIX_CONFIG: |
cores = 4
2 changes: 1 addition & 1 deletion .github/workflows/mac-nix-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: DeterminateSystems/flake-checker-action@main

- name: Run checks
run: nix flake -L check
run: nix build -L .?submodules=1#packages.aarch64-darwin.all-gcc
env:
NIX_CONFIG: |
cores = 0
Expand Down
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@
crypto3 = crypto3-clang;
});

all = pkgs.symlinkJoin {
all-clang = pkgs.symlinkJoin {
name = "all";
paths = [ crypto3-clang evm-assigner-clang ];
};
all-gcc = pkgs.symlinkJoin {
name = "all";
paths = [ crypto3-clang evm-assigner-clang crypto3-gcc evm-assigner-gcc ];
paths = [ crypto3-gcc evm-assigner-gcc ];
};
default = all;
default = all-gcc;
};
}));
}

0 comments on commit 74ae98d

Please sign in to comment.