CI: Reorder 32-bit build first for Linux autotool builds.

The 32-bit build needs to be first so the configure cache only needs to
be reset one time. The 32-bit build sets the CFLAGS env variable, so any
build using that flag after will fail unless the cache is reset.
This commit is contained in:
Jia Tan 2023-01-18 22:11:05 +08:00
parent dd1c113574
commit b2ba1a489d
1 changed files with 12 additions and 5 deletions

View File

@ -35,16 +35,23 @@ jobs:
# -b specifies the build system to use.
# -p specifies the phase (build or test) to help narrow down an error
# if one occurs.
#
# Start with the 32-bit build because the autoconf cache must be reset
# after the build because the 32-bit build sets the CFLAGS env variable.
# By starting with the 32-bit build, we only have to clear the
# cache once.
- name: Build 32-bit
run: ./build-aux/ci_build.sh -b autotools -p build -f "-m32"
- name: Test 32-bit
run: |
./build-aux/ci_build.sh -b autotools -p test -f "-m32"
cd ../xz_build && make distclean
- name: Build with full features
run: ./build-aux/ci_build.sh -b autotools -p build
- name: Test with full features
run: ./build-aux/ci_build.sh -b autotools -p test
- name: Build 32-bit
run: ./build-aux/ci_build.sh -b autotools -p build -f "-m32"
- name: Test 32-bit
run: ./build-aux/ci_build.sh -b autotools -p test -f "-m32"
- name: Build without encoders
run: ./build-aux/ci_build.sh -b autotools -d encoders,shared -p build
- name: Test without encoders