.gitlab-ci.yml 1.61 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
20
  script:
21
    - sbcl --script scripts/build-static-release.lisp
22
23
  artifacts:
    paths:
24
      - releases/
Eric Timmons's avatar
Eric Timmons committed
25
  needs: []
26

27
28
static-release:linux:amd64:
  extends: .static-release
29
30
31
  variables:
    ARCH: amd64

Eric Timmons's avatar
Eric Timmons committed
32
33
34
35
36
37
38
static-release:linux:arm64:
  extends: .static-release
  variables:
    ARCH: arm64
  tags:
    - arm64v8

39
40
41
##############################################################################
# Build dynamic executables
##############################################################################
Eric Timmons's avatar
Eric Timmons committed
42

43
44
.dynamic-exec:
  stage: build
Eric Timmons's avatar
Eric Timmons committed
45
  image: $DOCKER_HUB_CI_REPO:$SBCL_VERSION-alpine$ALPINE_VERSION-$ARCH
46
47
48
49
50
  script:
    - sbcl --script scripts/build.lisp
  artifacts:
    paths:
      - build/bin/
Eric Timmons's avatar
Eric Timmons committed
51

52
53
dynamic-exec:linux:amd64:
  extends: .dynamic-exec
Eric Timmons's avatar
Eric Timmons committed
54
55
56
57
58
59
60
61
62
  variables:
    ARCH: amd64

dynamic-exec:linux:arm64:
  extends: .dynamic-exec
  variables:
    ARCH: arm64
  tags:
    - arm64v8
Eric Timmons's avatar
Eric Timmons committed
63
64
65
66
67
68
69

dynamic-exec:linux:armv7:
  extends: .dynamic-exec
  variables:
    ARCH: armhf
  tags:
    - armv7
Eric Timmons's avatar
Eric Timmons committed
70
71
72
73
74
75
76
77
78
79

dynamic-exec:macos:amd64:
  stage: build
  script:
    - sbcl --script scripts/build.lisp
  artifacts:
    paths:
      - build/bin/
  tags:
    - macos-0.4-amd64