Skip to content

Commit

Permalink
Don't attempt to build protocol contracts in CI with make
Browse files Browse the repository at this point in the history
  • Loading branch information
szemate committed Feb 17, 2025
1 parent ec3146c commit e61074b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -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 && \
Expand All @@ -78,3 +82,5 @@ clean:
rm -rf $(AUTONITY_DIR)

.PHONY = autonity clean

endif

0 comments on commit e61074b

Please sign in to comment.