diff --git a/.github/workflows/precompile.yml b/.github/workflows/precompile.yml index 26b85e8..4e5bb3a 100644 --- a/.github/workflows/precompile.yml +++ b/.github/workflows/precompile.yml @@ -69,6 +69,12 @@ jobs: gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu \ gcc-s390x-linux-gnu g++-s390x-linux-gnu + - name: Set Swap Space + if: matrix.os == 'ubuntu-20.04' + uses: pierotofy/set-swap-space@master + with: + swap-size-gb: 10 + - name: Create precompiled library shell: bash run: | diff --git a/Makefile b/Makefile index c3f637a..31d48a3 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SRC_DIR = c_src CXXFLAGS = -O3 -std=c++11 -HEADERS_DIRS = $(sort $(dir $(shell find -E $(SRC_DIR) -regex ".*\.(hpp|h)"))) +HEADERS_DIRS = $(sort $(dir $(shell find $(SRC_DIR)/* | grep .h))) CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" CXXFLAGS += $(foreach header, $(HEADERS_DIRS), -I"$(header)")