Skip to content

Commit

Permalink
Reduce test matrix for emulated architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Oct 23, 2022
1 parent b98e018 commit 29dabc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:
DOCKERIMAGE: condaforge/linux-anvil-aarch64
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
TEST_IMAGE_NAMES: "ubuntu:22.04 ubuntu:16.04 centos:7"

- os: ubuntu-latest
ARCH: x86_64
Expand Down Expand Up @@ -164,6 +166,8 @@ jobs:
DOCKERIMAGE: condaforge/linux-anvil-ppc64le
MINIFORGE_NAME: "Mambaforge-pypy3"
OS_NAME: "Linux"
# Reduce the test matrix because the builds timeouts on emulated architectures
TEST_IMAGE_NAMES: "ubuntu:22.04 ubuntu:16.04 centos:7"

steps:
- name: Checkout code
Expand Down
3 changes: 2 additions & 1 deletion build_miniforge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DOCKERIMAGE=${DOCKERIMAGE:-condaforge/linux-anvil-aarch64}
export MINIFORGE_NAME=${MINIFORGE_NAME:-Miniforge3}
OS_NAME=${OS_NAME:-Linux}
EXT=${EXT:-sh}
TEST_IMAGE_NAMES=${TEST_IMAGE_NAMES:-ubuntu:22.04 ubuntu:20.04 ubuntu:18.04 ubuntu:16.04 centos:7 debian:bullseye debian:buster}
export CONSTRUCT_ROOT=/construct

echo "============= Create build directory ============="
Expand All @@ -33,7 +34,7 @@ docker run --rm -v "$(pwd):/construct" \
"${DOCKERIMAGE}" /construct/scripts/build.sh

echo "============= Test the installer ============="
for TEST_IMAGE_NAME in "ubuntu:22.04" "ubuntu:20.04" "ubuntu:18.04" "ubuntu:16.04" "centos:7" "debian:bullseye" "debian:buster"; do
for TEST_IMAGE_NAME in ${TEST_IMAGE_NAMES}; do
echo "============= Test installer on ${TEST_IMAGE_NAME} ============="
docker run --rm -v "$(pwd):/construct" -e CONSTRUCT_ROOT \
"${DOCKER_ARCH}/${TEST_IMAGE_NAME}" /construct/scripts/test.sh
Expand Down

0 comments on commit 29dabc9

Please sign in to comment.