Skip to content

Commit

Permalink
ci: use separate ci jobs instead of parallel matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev authored and igrr committed Mar 19, 2024
1 parent 57aada7 commit d6aa0b0
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ generate_version:

- cat version.env

build-linux:
.build_linux_template:
stage: build
image: $CI_DOCKER_REGISTRY/qemu-build:6
tags:
- build
- amd64
variables:
# Don't use parallel:matrix here,
# becuase needs:project doesn't support it
# https://docs.gitlab.com/ee/ci/yaml/#needsproject
PLATFORM: x86_64-linux-gnu
TARGET: "" # to be set in the job
artifacts:
paths:
- dist/qemu-*.tar.xz
- dist/archive_name_*
expire_in: 1 week
parallel:
matrix:
- PLATFORM: [x86_64-linux-gnu]
TARGET: [riscv32-linux-user, xtensa-softmmu, riscv32-softmmu]
script:
- ./.github/workflows/scripts/configure-native.sh
- ninja -C build install
Expand All @@ -49,6 +51,24 @@ build-linux:
- tar cJvf ${DIST_DIR}/${ARCHIVE_NAME} qemu
- echo $ARCHIVE_NAME >${DIST_DIR}/archive_name_${TARGET}_${PLATFORM}

# these build jobs names are used in needs:project in idf/qemu-tests
# don't rename it without updating the needs:project in idf/qemu-tests

build_linux_xtensa_softmmu:
extends: .build_linux_template
variables:
TARGET: xtensa-softmmu

build_linux_riscv32_softmmu:
extends: .build_linux_template
variables:
TARGET: riscv32-softmmu

build_linux_riscv32_user:
extends: .build_linux_template
variables:
TARGET: riscv32-linux-user

upload_to_http:
image: espressif/scp
stage: deploy
Expand Down

0 comments on commit d6aa0b0

Please sign in to comment.