.gitlab-ci.yml 1.77 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
  SBCL_VERSION: 2.1.1
  DOCKER_HUB_CI_REPO: daewok/clpm-ci

Eric Timmons's avatar
Eric Timmons committed
7
8
9
include:
  - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'

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

14
##############################################################################
15
# Build static releases
16
17
##############################################################################

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

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

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

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

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

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

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

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

dynamic-exec:macos:amd64:
  stage: build
Eric Timmons's avatar
Eric Timmons committed
82
  extends: .dynamic-exec
Eric Timmons's avatar
Eric Timmons committed
83
84
  tags:
    - macos-0.4-amd64