ci: remove nix from gh workflows (#21572)

This commit is contained in:
auricom
2024-09-11 08:08:09 +00:00
committed by GitHub
parent 9dd6a99a64
commit c536c0f18c
9 changed files with 130 additions and 235 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ REPO_ROOT="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd
export REPO_ROOT
LINT_TAGS="e2e,ledger,test_ledger_mock"
if [[ ! -z "${NIX:-}" ]]; then
if [[ ! -z "${ROCKSDB:-}" ]]; then
LINT_TAGS+=",rocksdb"
fi
export LINT_TAGS
+1 -17
View File
@@ -6,20 +6,4 @@ for modfile in $(find . -name go.mod); do
echo "Updating $modfile"
DIR=$(dirname $modfile)
(cd $DIR; go mod tidy)
done
# update gomod2nix.toml for simapp
# NOTE: gomod2nix should be built using the same go version as the project, the nix flake will make sure of that
# automatically.
cd simapp
if command -v nix &> /dev/null
then
nix develop .. -c gomod2nix
if ! command -v gomod2nix &> /dev/null
then
echo "gomod2nix could not be found in PATH, installing..."
go install github.com/nix-community/gomod2nix@latest
fi
gomod2nix
fi
done