File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 7474 git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
7575 git submodule update --init --recursive --depth 1
7676 working-directory : gnu
77+ - name : Restore config.cache
78+ uses : actions/cache@v4
79+ id : cache-config-gnu
80+ with :
81+ path : gnu/config.cache
82+ key : ${{ runner.os }}-gnu-config-${{ env.REPO_GNU_REF }}-${{ hashFiles('gnu/configure') }}
83+ restore-keys : |
84+ ${{ runner.os }}-gnu-config-${{ env.REPO_GNU_REF }}-
85+ ${{ runner.os }}-gnu-config-
7786
7887 # ### Build environment setup
7988 - name : Install dependencies
@@ -115,6 +124,13 @@ jobs:
115124 ## Build binaries
116125 cd 'uutils'
117126 env PROFILE=release-small bash util/build-gnu.sh
127+
128+ - name : Save config.cache
129+ uses : actions/cache/save@v4
130+ if : always() && steps.cache-config-gnu.outputs.cache-hit != 'true'
131+ with :
132+ path : gnu/config.cache
133+ key : ${{ runner.os }}-gnu-config-${{ env.REPO_GNU_REF }}-${{ hashFiles('gnu/configure') }}
118134
119135 # ## Run tests as user
120136 - name : Run GNU tests
Original file line number Diff line number Diff line change 134134 " ${SED} " -i ' /^wget.*/d' bootstrap.conf # wget is used to DL po. Remove the dep.
135135 ./bootstrap --skip-po
136136 # Use CFLAGS for best build time since we discard GNU coreutils
137- CFLAGS=" ${CFLAGS} -pipe -O0 -s" ./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
137+ CFLAGS=" ${CFLAGS} -pipe -O0 -s" ./configure -C - -quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
138138 --enable-single-binary=symlinks \
139139 " $( [ " ${SELINUX_ENABLED} " = 1 ] && echo --with-selinux || echo --without-selinux) "
140140 # Add timeout to to protect against hangs
You can’t perform that action at this time.
0 commit comments