Skip to content

Add export config file for assigner package #63

Add export config file for assigner package

Add export config file for assigner package #63

Workflow file for this run

name: Build and test on Linux
on:
push:
branches: [ master ]
pull_request:
concurrency:
# In master we want to run for every commit, in other branches — only for the last one
group: ${{
( github.ref == 'refs/heads/master' &&
format('{0}/{1}/{2}', github.workflow, github.ref, github.sha) )
||
format('{0}/{1}', github.workflow, github.ref) }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and run tests
runs-on: [self-hosted, Linux, X64, aws_autoscaling]
steps:
# https://github.com/actions/checkout/issues/1552
- name: Clean up after previous checkout
run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*;
- name: Checkout sources
uses: actions/checkout@v3
- name: Build sources
run: nix build -L
- 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