Skip to content

Commit

Permalink
Check build without nix
Browse files Browse the repository at this point in the history
  • Loading branch information
makxenov committed Jun 6, 2024
1 parent 760ca8c commit 8da8cef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,20 @@ jobs:

- name: Run tests
run: nix flake -L check

- name: Check build without nix
run: |
nix develop -c "env" | grep CMAKE_PREFIX_PATH >cmake_prefix
source cmake_prefix
echo "export `cat cmake_prefix`" > cmake_prefix
echo $CMAKE_PREFIX_PATH
ETHASH_LOC=`nix develop -c env | grep CMAKE_PREFIX_PATH | sed 's/\:/\n/g' | grep ethash`
ls $ETHASH_LOC/lib/cmake/ethash
CMAKE_BINARY=$(nix develop -c bash -c 'which cmake' | tail -1)
echo $CMAKE_BINARY
NINJA_BINARY=$(nix develop -c bash -c 'which ninja' | tail -1)
echo $NINJA_BINARY
CXX=$(nix develop -c bash -c 'which g++' | tail -1)
echo $CXX
$CMAKE_BINARY -GNinja -DCMAKE_MAKE_PROGRAM=$NINJA_BINARY -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=$CXX
$NINJA_BINARY -C build

0 comments on commit 8da8cef

Please sign in to comment.