Skip to content

Commit

Permalink
Attempt to decrease disk usage on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Feb 17, 2021
1 parent ddda294 commit f3d2373
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
df -h
sleep 15
done) &
make --no-print-directory -C regtest
make --no-print-directory -C regtest testclean
# these can fail for numerical reasons
make -C regtest checkfail
- name: Run python tests
Expand Down
7 changes: 7 additions & 0 deletions regtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SUBDIRS := $(subst /,,$(dir $(shell ls */Makefile)))

SUBDIRSCLEAN := $(addsuffix .clean,$(SUBDIRS))
SUBDIRSVALGRIND := $(addsuffix .valgrind,$(SUBDIRS))
SUBDIRSTESTCLEAN := $(addsuffix .testclean,$(SUBDIRS))

.PHONY: all checkfail copytodoc clean valgrind $(SUBDIRS) $(SUBDIRSCLEAN) $(SUBDIRSVALGRIND)

Expand All @@ -20,6 +21,8 @@ clean: $(SUBDIRSCLEAN)
valgrind: $(SUBDIRSVALGRIND)
scripts/check

testclean: $(SUBDIRSTESTCLEAN)

$(SUBDIRS):
$(MAKE) -C $@

Expand All @@ -28,3 +31,7 @@ $(SUBDIRSCLEAN): %.clean:

$(SUBDIRSVALGRIND): %.valgrind:
$(MAKE) -C $* valgrind

$(SUBDIRSTESTCLEAN): %.testclean:
$(MAKE) -C $* testclean

7 changes: 7 additions & 0 deletions regtest/scripts/module.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SUBDIRS := $(subst /Makefile,,$(wildcard rt*/Makefile))
SUBDIRSCLEAN := $(addsuffix .clean,$(SUBDIRS))
SUBDIRSTESTCLEAN := $(addsuffix .testclean,$(SUBDIRS))
SUBDIRSVALGRIND := $(addsuffix .valgrind,$(SUBDIRS))

.PHONY: all clean valgrind $(SUBDIRS) $(SUBDIRSCLEAN) $(SUBDIRSVALGRIND)
Expand All @@ -10,6 +11,8 @@ clean: $(SUBDIRSCLEAN)

valgrind: $(SUBDIRSVALGRIND)

testclean: $(SUBDIRSTESTCLEAN)

$(SUBDIRS):
$(MAKE) -C $@

Expand All @@ -18,3 +21,7 @@ $(SUBDIRSCLEAN): %.clean:

$(SUBDIRSVALGRIND): %.valgrind:
$(MAKE) -C $* valgrind

$(SUBDIRSTESTCLEAN): %.testclean:
$(MAKE) -C $* testclean

4 changes: 4 additions & 0 deletions regtest/scripts/test.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ clean:
valgrind:
../../scripts/run --valgrind

testclean:
$(MAKE) test
rm -fr tmp/

0 comments on commit f3d2373

Please sign in to comment.