summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b526f5e452cf528e80718952e714b31981eabf5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
workflow:
  rules:
    # https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines
    # Do not duplicate pipelines when pushing to a branch used in a
    # merge request, only start merge request's pipeline.
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH

# Check cache variables are set for the GitLab project before running
missing_variables:
  stage: .pre
  script:
    - test -n "${SSTATE_DIR:-}"
    - test -n "${DL_DIR:-}"

lint:
  tags:
    - docker
  image: docker.io/mstruebing/editorconfig-checker:2.7.2
  stage: build
  script:
    - ec

.build:
  tags:
    - docker
  needs: ["lint"]
  image: ghcr.io/siemens/kas/kas:4.0
  stage: build
  script:
    - KAS_MACHINE="$CI_JOB_NAME" kas build kas-theobroma.yml
  artifacts:
    paths:
      - build/tmp/deploy/images/$CI_JOB_NAME/*.rootfs.wic
      - build/tmp/deploy/images/$CI_JOB_NAME/*.rootfs.wic.bmap
      - build/tmp/deploy/images/$CI_JOB_NAME/fitImage*$CI_JOB_NAME-*.bin
      - build/tmp/deploy/images/$CI_JOB_NAME/idbloader.img-$CI_JOB_NAME-*
      - build/tmp/deploy/images/$CI_JOB_NAME/u-boot-$CI_JOB_NAME-*.itb
    exclude:
      - build/tmp/deploy/images/$CI_JOB_NAME/fitImage*linux*.bin
  timeout: 10h

ringneck-haikou:
  extends: .build

puma-haikou:
  extends: .build

jaguar:
  extends: .build

tiger-haikou:
  extends: .build