aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-18 22:11:05 +0800
committerJia Tan <jiat0218@gmail.com>2023-01-18 22:11:05 +0800
commitb2ba1a489df451cdcd93b2334e319dd06778de19 (patch)
tree6a16417214f37e5d196f5267cf0cde689d2f7b0f
parentCI: Enable --config-cache in autotool builds. (diff)
downloadxz-b2ba1a489df451cdcd93b2334e319dd06778de19.tar.xz
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.
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bbf24d81..25716873 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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