.gitlab-ci.yml 1.93 KB
Newer Older
Eric Timmons's avatar
Eric Timmons committed
1
2
variables:
  GIT_SUBMODULE_STRATEGY: recursive
Eric Timmons's avatar
Fix CI    
Eric Timmons committed
3
  ALPINE_VERSION: "3.13"
Eric Timmons's avatar
Eric Timmons committed
4
5
6
7
8
9
10
  SBCL_VERSION: 2.1.1
  DOCKER_HUB_CI_REPO: daewok/clpm-ci

image: clfoundation/sbcl:$SBCL_VERSION-alpine$ALPINE_VERSION

stages:
  - prep
Eric Timmons's avatar
Eric Timmons committed
11
  - build
Eric Timmons's avatar
Eric Timmons committed
12

13
##############################################################################
14
# Build static releases
15
16
##############################################################################

17
.static-release:
18
  stage: build
19
  image: $DOCKER_HUB_CI_REPO:$SBCL_VERSION-alpine$ALPINE_VERSION-$ARCH
Eric Timmons's avatar
Eric Timmons committed
20
  before_script:
21
    - git checkout -B $CI_COMMIT_BRANCH $CI_COMMIT_SHA
22
  script:
23
    - sbcl --script scripts/build-static-release.lisp
24
25
  artifacts:
    paths:
26
      - releases/
Eric Timmons's avatar
Eric Timmons committed
27
  needs: []
28
29
  rules:
    - if: '$CI_COMMIT_BRANCH'
30

31
32
static-release:linux:amd64:
  extends: .static-release
33
34
35
  variables:
    ARCH: amd64

Eric Timmons's avatar
Eric Timmons committed
36
37
38
39
40
41
42
static-release:linux:arm64:
  extends: .static-release
  variables:
    ARCH: arm64
  tags:
    - arm64v8

43
44
45
##############################################################################
# Build dynamic executables
##############################################################################
Eric Timmons's avatar
Eric Timmons committed
46

47
48
.dynamic-exec:
  stage: build
Eric Timmons's avatar
Eric Timmons committed
49
  image: $DOCKER_HUB_CI_REPO:$SBCL_VERSION-alpine$ALPINE_VERSION-$ARCH
Eric Timmons's avatar
Eric Timmons committed
50
  before_script:
51
    - git checkout -B $CI_COMMIT_BRANCH $CI_COMMIT_SHA
52
53
54
55
56
  script:
    - sbcl --script scripts/build.lisp
  artifacts:
    paths:
      - build/bin/
57
58
  rules:
    - if: '$CI_COMMIT_BRANCH'
Eric Timmons's avatar
Eric Timmons committed
59

60
61
dynamic-exec:linux:amd64:
  extends: .dynamic-exec
Eric Timmons's avatar
Eric Timmons committed
62
63
64
65
66
67
68
69
70
  variables:
    ARCH: amd64

dynamic-exec:linux:arm64:
  extends: .dynamic-exec
  variables:
    ARCH: arm64
  tags:
    - arm64v8
Eric Timmons's avatar
Eric Timmons committed
71
72
73
74
75
76
77

dynamic-exec:linux:armv7:
  extends: .dynamic-exec
  variables:
    ARCH: armhf
  tags:
    - armv7
Eric Timmons's avatar
Eric Timmons committed
78
79
80

dynamic-exec:macos:amd64:
  stage: build
Eric Timmons's avatar
Eric Timmons committed
81
  before_script:
82
    - git checkout -B $CI_COMMIT_BRANCH $CI_COMMIT_SHA
Eric Timmons's avatar
Eric Timmons committed
83
84
85
86
87
88
89
  script:
    - sbcl --script scripts/build.lisp
  artifacts:
    paths:
      - build/bin/
  tags:
    - macos-0.4-amd64
90
91
  rules:
    - if: '$CI_COMMIT_BRANCH'