ci: remove split of static CI jobs into more places

Since the previous commits, there is only one job making use of
.package-test hidden job, so merge it into the main file, as the
include just makes the whole thing harder to follow.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9349>
This commit is contained in:
Pablo Correa Gómez
2026-08-23 12:47:35 +00:00
parent 2b9d12adfa
commit cd404bd5f9
2 changed files with 18 additions and 27 deletions
+18 -6
View File
@@ -30,8 +30,6 @@ workflow:
# Run scheduled pipeline for autoupdate or manually triggered pipeline # Run scheduled pipeline for autoupdate or manually triggered pipeline
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web" - if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"
include: "cross/.gitlab-ci.yml"
# device documentation # device documentation
wiki: wiki:
stage: lint stage: lint
@@ -288,10 +286,24 @@ auto-update:
- log_testsuite_pmaports.txt - log_testsuite_pmaports.txt
- pmbootstrap.cfg - pmbootstrap.cfg
# Template for package test jobs defined per-package cross-gcc-tests:
.package-test:
stage: test stage: test
tags: [qemu]
before_script:
- wget "https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/main/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh
script:
- su pmos -c "pmbootstrap build gcc-aarch64"
- su pmos -c "pmbootstrap build --arch=aarch64 hello-world --force"
- su pmos -c "pmbootstrap build --arch=aarch64 iskey --force"
- su pmos -c "pmbootstrap build --arch=aarch64 mkbootimg-osm0sis --force"
- su pmos -c "pmbootstrap build --arch=aarch64 gcc-x86_64"
rules: rules:
- if: *mr_rule - if: *mr_rule
before_script: changes:
- .ci/lib/gitlab_prepare_ci.sh - cross/gcc-x86_64/APKBUILD
artifacts:
when: always
paths:
- log.txt
expire_in: 1 week
-21
View File
@@ -1,21 +0,0 @@
cross-gcc-tests:
extends: .package-test
tags: [qemu]
before_script:
- wget "https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/main/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh
script:
- su pmos -c "pmbootstrap build gcc-aarch64"
- su pmos -c "pmbootstrap build --arch=aarch64 hello-world --force"
- su pmos -c "pmbootstrap build --arch=aarch64 iskey --force"
- su pmos -c "pmbootstrap build --arch=aarch64 mkbootimg-osm0sis --force"
- su pmos -c "pmbootstrap build --arch=aarch64 gcc-x86_64"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- cross/gcc-x86_64/APKBUILD
artifacts:
when: always
paths:
- log.txt
expire_in: 1 week