Terms of Service | Privacy Policy | Cookie Policy

.gitlab-ci.yml 1.36 KB
Newer Older
Uwe Plonus's avatar
Uwe Plonus committed
1
image: $CI_REGISTRY/sw4j-net/noweb-nasm:latest
Uwe Plonus's avatar
Uwe Plonus committed
2 3

stages:
4
  - extract
Uwe Plonus's avatar
Uwe Plonus committed
5 6 7 8
  - build
  - deploy

asm:
Uwe Plonus's avatar
Uwe Plonus committed
9
  image: $CI_REGISTRY/sw4j-net/noweb:latest
10 11 12 13 14 15 16 17
  stage: extract
  script:
    - make -C asm asm
  artifacts:
    paths:
      - asm/*.asm
    expire_in: 1 hour

18
tex:
Uwe Plonus's avatar
Uwe Plonus committed
19
  image: $CI_REGISTRY/sw4j-net/noweb:latest
20 21 22 23 24
  stage: extract
  script:
    - make -C pdf tex
  artifacts:
    paths:
Uwe Plonus's avatar
Uwe Plonus committed
25
      - pdf/Meltdown-Spectre.*
26 27
    expire_in: 1 hour

28
build:
Uwe Plonus's avatar
Uwe Plonus committed
29
  image: $CI_REGISTRY/sw4j-net/nasm:latest
Uwe Plonus's avatar
Uwe Plonus committed
30 31
  stage: build
  script:
32
    - make prepare
Uwe Plonus's avatar
Uwe Plonus committed
33
    - make -t -C asm asm
34 35 36
    - make -C asm build
  dependencies:
    - asm
Uwe Plonus's avatar
Uwe Plonus committed
37 38 39 40
  artifacts:
    paths:
      - asm/*.asm
      - bin/*
41
    expire_in: 1 hour
Uwe Plonus's avatar
Uwe Plonus committed
42 43

pdf:
Uwe Plonus's avatar
Uwe Plonus committed
44
  image: $CI_REGISTRY/sw4j-net/noweb:latest
Uwe Plonus's avatar
Uwe Plonus committed
45 46
  stage: build
  script:
47
    - make -C pdf pdf
Uwe Plonus's avatar
Uwe Plonus committed
48 49
  dependencies:
    - tex
Uwe Plonus's avatar
Uwe Plonus committed
50 51 52
  artifacts:
    paths:
      - pdf/*.pdf
53
    expire_in: 1 hour
Uwe Plonus's avatar
Uwe Plonus committed
54 55

pages:
Uwe Plonus's avatar
Uwe Plonus committed
56
  image: $CI_REGISTRY/sw4j-net/jekyll:latest
Uwe Plonus's avatar
Uwe Plonus committed
57 58
  stage: deploy
  script:
Uwe Plonus's avatar
Uwe Plonus committed
59
    - gem install jekyll-theme-tactile-nogh
Uwe Plonus's avatar
Uwe Plonus committed
60
    - jekyll build -s site -d public
61
    - mkdir -p public/asm
62
    - cp asm/*.asm public/asm/
Uwe Plonus's avatar
Uwe Plonus committed
63 64
    - mkdir -p public/bin
    - cp bin/* public/bin/
65
    - cp pdf/Meltdown-Spectre.pdf public/
66
    - zip public/asm.zip asm/*.asm
67 68 69
    - tar cf public/asm.tar asm/*.asm
    - tar czf public/asm.tar.gz asm/*.asm
    - tar cjf public/asm.tar.bz2 asm/*.asm
Uwe Plonus's avatar
Uwe Plonus committed
70 71 72 73 74
  artifacts:
    paths:
      - public
  only:
    - master