From ea08dbc4fdca79a33bba1eff1a5790d525ee727a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Szendr=C5=91?= Date: Mon, 17 Feb 2025 19:16:08 +0000 Subject: [PATCH] Don't attempt to build protocol contracts in CI with `make` --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 861377d..15940ab 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ AUTONITY_BIN := $(AUTONITY_DIR)/build/bin/autonity ABIDIR := $(AUTONITY_DIR)/params/generated SRCDIR := $(AUTONITY_DIR)/autonity/solidity/contracts OUTDIR := autonity/contracts +CI := ${CI} abigen = hatch run generate:pyabigen \ --version $(VERSION) \ @@ -57,6 +58,9 @@ $(OUTDIR)/supply_control.py: $(call gentargets,SupplyControl) $(OUTDIR)/upgrade_manager.py: $(call gentargets,UpgradeManager) $(call abigen,$^) --exclude setOperator >$@ +# -- The targets below are not available in GitHub workflows -- +ifneq ($(CI),true) + $(ABIDIR)/%.abi $(ABIDIR)/%.docdev $(ABIDIR)/%.docuser: $(AUTONITY_DIR) AUTONITY_VERSION cd $< && \ git fetch origin && \ @@ -78,3 +82,5 @@ clean: rm -rf $(AUTONITY_DIR) .PHONY = autonity clean + +endif