Skip to content

Commit

Permalink
Tweaks for actions groups
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 31, 2024
1 parent e725b30 commit d0aefdd
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1568,13 +1568,14 @@ update-bundled_gems: PHONY
$(GIT) -C "$(srcdir)" diff --no-ext-diff --ignore-submodules --exit-code || \
$(GIT) -C "$(srcdir)" commit -m "Update bundled_gems" gems/bundled_gems

PRECHECK_BUNDLED_GEMS = test-bundled-gems-precheck
PRECHECK_BUNDLED_GEMS = yes
test-bundled-gems-precheck: $(TEST_RUNNABLE)-test-bundled-gems-precheck
yes-test-bundled-gems-precheck: main
yes-test-bundled-gems-precheck: $(PRECHECK_BUNDLED_GEMS:yes=main)
no-test-bundled-gems-precheck:

update-default-gemspecs: main
$(ACTIONS_GROUP)
update-default-gemspecs: $(TEST_RUNNABLE)-update-default-gemspecs
no-update-default-gemspecs:
yes-update-default-gemspecs: $(PRECHECK_BUNDLED_GEMS:yes=main)
@$(MAKEDIRS) $(srcdir)/.bundle/specifications
@$(XRUBY) -W0 -C "$(srcdir)" -rrubygems \
-e "destdir = ARGV.shift" \
Expand All @@ -1593,27 +1594,32 @@ update-default-gemspecs: main
-e "end" \
-e "end" \
-- .bundle/specifications lib ext
$(ACTIONS_ENDGROUP)

install-for-test-bundled-gems: update-default-gemspecs
$(ACTIONS_GROUP)
install-for-test-bundled-gems: $(TEST_RUNNABLE)-install-for-test-bundled-gems
no-install-for-test-bundled-gems: no-update-default-gemspecs
yes-install-for-test-bundled-gems: yes-update-default-gemspecs
$(XRUBY) -C "$(srcdir)" -r./tool/lib/gem_env.rb bin/gem \
install --no-document --conservative \
"hoe" "json-schema" "test-unit-rr" "simplecov" "simplecov-html" "simplecov-json"
$(ACTIONS_ENDGROUP)

test-bundled-gems-fetch: yes-test-bundled-gems-fetch
yes-test-bundled-gems-fetch:
$(ACTIONS_GROUP)
$(Q) $(BASERUBY) -C $(srcdir)/gems ../tool/fetch-bundled_gems.rb BUNDLED_GEMS="$(BUNDLED_GEMS)" src bundled_gems
$(ACTIONS_ENDGROUP)
no-test-bundled-gems-fetch:

test-bundled-gems-prepare: $(PRECHECK_BUNDLED_GEMS) test-bundled-gems-fetch
test-bundled-gems-prepare: $(TEST_RUNNABLE)-test-bundled-gems-prepare
no-test-bundled-gems-prepare: no-test-bundled-gems-precheck no-test-bundled-gems-fetch
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck yes-test-bundled-gems-fetch
yes-test-bundled-gems-prepare: install-for-test-bundled-gems
yes-bundled-gems-prepare:
$(ACTIONS_GROUP)
yes-test-bundled-gems-prepare: yes-bundled-gems-prepare $(DOT_WAIT)
$(ACTIONS_ENDGROUP)
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck $(DOT_WAIT)
yes-test-bundled-gems-prepare: yes-install-for-test-bundled-gems $(DOT_WAIT)
yes-test-bundled-gems-prepare: yes-test-bundled-gems-fetch $(DOT_WAIT)
yes-test-bundled-gems-precheck: yes-bundled-gems-prepare
yes-install-for-test-bundled-gems: yes-bundled-gems-prepare
yes-test-bundled-gems-fetch: yes-bundled-gems-prepare


PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems $(DOT_WAIT) $(TEST_RUNNABLE)-test-bundled-gems-spec
Expand Down

0 comments on commit d0aefdd

Please sign in to comment.