Skip to content

Commit 2fb21d2

Browse files
author
oech3
committed
GnuTests: Cache configure
1 parent 13c1624 commit 2fb21d2

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/GnuTests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ jobs:
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

util/build-gnu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ else
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

0 commit comments

Comments
 (0)