.gitlab-ci.yml 1.16 KB
Newer Older
Eric Timmons's avatar
Eric Timmons committed
1
image: debian
2

Eric Timmons's avatar
Eric Timmons committed
3
4
5
variables:
  GIT_SUBMODULE_STRATEGY: recursive

Eric Timmons's avatar
Eric Timmons committed
6
build-glibc:
7
8
9
  image:
    name: daewok/sbcl:debian
    entrypoint: [""]
10
11
  stage: build
  script:
Eric Timmons's avatar
Eric Timmons committed
12
    - apt-get update
Eric Timmons's avatar
Eric Timmons committed
13
    - apt-get install -y libssl-dev
14
    - sbcl --no-sysinit --no-userinit --non-interactive --load build.lisp --eval "(clpm-build:build)"
Eric Timmons's avatar
Eric Timmons committed
15
    - mv build build-glibc
Eric Timmons's avatar
Eric Timmons committed
16
17
  artifacts:
    paths:
Eric Timmons's avatar
Eric Timmons committed
18
      - build-glibc/bin/clpm
Eric Timmons's avatar
Eric Timmons committed
19
    expire_in: 2 days
Eric Timmons's avatar
Eric Timmons committed
20
21

build-musl:
22
23
24
  image:
    name: daewok/sbcl:alpine
    entrypoint: [""]
Eric Timmons's avatar
Eric Timmons committed
25
26
27
28
29
30
31
32
33
34
35
36
  stage: build
  script:
    - apk add openssl-dev
    - sbcl --no-sysinit --no-userinit --non-interactive --load build.lisp --eval "(clpm-build:build)"
    - mv build build-musl
  artifacts:
    paths:
      - build-musl/bin/clpm
    expire_in: 2 days

release-glibc:
  stage: deploy
37
38
  variables:
    GIT_SUBMODULE_STRATEGY: none
Eric Timmons's avatar
Eric Timmons committed
39
40
41
42
43
44
45
46
47
48
49
  script:
    - mv build-glibc/bin/clpm clpm
  artifacts:
    name: clpm-${CI_COMMIT_TAG}-linux-gnu
    paths:
      - clpm
  only:
    - tags

release-musl:
  stage: deploy
50
51
  variables:
    GIT_SUBMODULE_STRATEGY: none
Eric Timmons's avatar
Eric Timmons committed
52
53
54
55
56
57
58
59
  script:
    - mv build-musl/bin/clpm clpm
  artifacts:
    name: clpm-${CI_COMMIT_TAG}-linux-musl
    paths:
      - clpm
  only:
    - tags