ci: build aarch64 mkinitfs to use in ci-tron testing
Else mkinitfs fails: https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/jobs/1395713 to run x86_64 binary on aarch64 Part-of: https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/merge_requests/63 [ci:skip-build]: already built successfully in CI
This commit is contained in:
@@ -31,6 +31,12 @@ build:
|
|||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
GOTEST: "gotestsum --junitfile report.xml --format testname -- ./..."
|
GOTEST: "gotestsum --junitfile report.xml --format testname -- ./..."
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- TAG: shared
|
||||||
|
- TAG: arm64
|
||||||
|
tags:
|
||||||
|
- $TAG
|
||||||
before_script:
|
before_script:
|
||||||
- apk -q add go gotestsum staticcheck make scdoc
|
- apk -q add go gotestsum staticcheck make scdoc
|
||||||
script:
|
script:
|
||||||
@@ -51,38 +57,54 @@ build:
|
|||||||
DEVICE_NAME: qemu-$CPU_ARCH
|
DEVICE_NAME: qemu-$CPU_ARCH
|
||||||
KERNEL_VARIANT: lts
|
KERNEL_VARIANT: lts
|
||||||
|
|
||||||
build-ci-tron-qemu:
|
.build-ci-tron-qemu:
|
||||||
stage: hardware tests
|
stage: hardware tests
|
||||||
extends:
|
extends:
|
||||||
- .pmos-ci-tron-build-boot-artifacts
|
- .pmos-ci-tron-build-boot-artifacts
|
||||||
- .qemu-common
|
- .qemu-common
|
||||||
needs: ["build"]
|
|
||||||
parallel:
|
|
||||||
matrix:
|
|
||||||
- CPU_ARCH:
|
|
||||||
- amd64
|
|
||||||
- aarch64
|
|
||||||
variables:
|
variables:
|
||||||
INSTALL_PACKAGES: device-${DEVICE_NAME} device-${DEVICE_NAME}-kernel-${KERNEL_VARIANT} postmarketos-mkinitfs-hook-ci
|
INSTALL_PACKAGES: device-${DEVICE_NAME} device-${DEVICE_NAME}-kernel-${KERNEL_VARIANT} postmarketos-mkinitfs-hook-ci
|
||||||
|
|
||||||
|
build-ci-tron-qemu-amd64:
|
||||||
|
extends:
|
||||||
|
- .build-ci-tron-qemu
|
||||||
|
needs:
|
||||||
|
- job: "build"
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- TAG: shared
|
||||||
|
variables:
|
||||||
|
CPU_ARCH: amd64
|
||||||
|
|
||||||
|
build-ci-tron-qemu-aarch64:
|
||||||
|
extends:
|
||||||
|
- .build-ci-tron-qemu
|
||||||
|
needs:
|
||||||
|
- job: "build"
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- TAG: arm64
|
||||||
|
variables:
|
||||||
|
CPU_ARCH: aarch64
|
||||||
|
|
||||||
.test-ci-tron-qemu:
|
.test-ci-tron-qemu:
|
||||||
stage: hardware tests
|
stage: hardware tests
|
||||||
extends:
|
extends:
|
||||||
- .pmos-ci-tron-initramfs-test
|
- .pmos-ci-tron-initramfs-test
|
||||||
- .qemu-common
|
- .qemu-common
|
||||||
dependencies: []
|
dependencies: []
|
||||||
needs:
|
|
||||||
- job: 'build-ci-tron-qemu'
|
|
||||||
artifacts: false
|
|
||||||
variables:
|
variables:
|
||||||
CI_TRON_KERNEL__URL: "glartifact://build-ci-tron-qemu: [$CPU_ARCH]/${CI_TRON__PMB_EXPORT_PATH}/vmlinuz-${KERNEL_VARIANT}"
|
CI_TRON_KERNEL__URL: "glartifact://build-ci-tron-qemu-$CPU_ARCH/${CI_TRON__PMB_EXPORT_PATH}/vmlinuz-${KERNEL_VARIANT}"
|
||||||
CI_TRON_INITRAMFS__INITRAMFS__URL: "glartifact://build-ci-tron-qemu: [$CPU_ARCH]/${CI_TRON__PMB_EXPORT_PATH}/initramfs"
|
CI_TRON_INITRAMFS__INITRAMFS__URL: "glartifact://build-ci-tron-qemu-$CPU_ARCH/${CI_TRON__PMB_EXPORT_PATH}/initramfs"
|
||||||
CI_TRON_KERNEL_CMDLINE__DEVICEINFO: 'console=tty1 console=ttyS0,115200 PMOS_FORCE_PARTITION_RESIZE'
|
CI_TRON_KERNEL_CMDLINE__DEVICEINFO: 'console=tty1 console=ttyS0,115200 PMOS_FORCE_PARTITION_RESIZE'
|
||||||
|
|
||||||
test-ci-tron-qemu-amd64:
|
test-ci-tron-qemu-amd64:
|
||||||
extends:
|
extends:
|
||||||
- .test-ci-tron-qemu
|
- .test-ci-tron-qemu
|
||||||
- .pmos-ci-tron-runner-qemu-amd64
|
- .pmos-ci-tron-runner-qemu-amd64
|
||||||
|
needs:
|
||||||
|
- job: 'build-ci-tron-qemu-amd64'
|
||||||
|
artifacts: false
|
||||||
variables:
|
variables:
|
||||||
CPU_ARCH: amd64
|
CPU_ARCH: amd64
|
||||||
|
|
||||||
@@ -90,6 +112,9 @@ test-ci-tron-qemu-aarch64:
|
|||||||
extends:
|
extends:
|
||||||
- .test-ci-tron-qemu
|
- .test-ci-tron-qemu
|
||||||
- .pmos-ci-tron-runner-qemu-aarch64
|
- .pmos-ci-tron-runner-qemu-aarch64
|
||||||
|
needs:
|
||||||
|
- job: 'build-ci-tron-qemu-aarch64'
|
||||||
|
artifacts: false
|
||||||
variables:
|
variables:
|
||||||
CPU_ARCH: aarch64
|
CPU_ARCH: aarch64
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user