.gitlab-ci.yml 1.21 KB
Newer Older
Razvan Radulescu's avatar
Razvan Radulescu committed
1
variables:
Razvan Radulescu's avatar
Razvan Radulescu committed
2 3 4
  DEB_VERSION: "0.1"
  DEB_NAME: "flossy-gnu"
  BUILD_NAME: "game"
Razvan Radulescu's avatar
Razvan Radulescu committed
5
  GODOT_VERSION: "3.0.6"
Razvan Radulescu's avatar
Razvan Radulescu committed
6
  GODOT_VARIANT: "stable"
Razvan Radulescu's avatar
Razvan Radulescu committed
7 8 9 10

purism:
  stage: build
  before_script:
11
    - apt-get update -q
12 13 14
    - apt-get install -yq wget unzip fakeroot debhelper godot3-server
    - mkdir -v -p ./build/$DEB_NAME-$DEB_VERSION ~/.local/share/godot/templates ~/.cache ~/.config/godot
    - mv -v ./Godot_v*_export_templates/templates ~/.local/share/godot/templates/${GODOT_VERSION}.${GODOT_VARIANT}
Razvan Radulescu's avatar
Razvan Radulescu committed
15
    - uname -a
Razvan Radulescu's avatar
Razvan Radulescu committed
16
  script:
17
    - godot3-server -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
Razvan Radulescu's avatar
Razvan Radulescu committed
18 19 20
    - mv -v ./debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION
    - cp -v ./$BUILD_NAME/icon.png ./build/$DEB_NAME-$DEB_VERSION
    - ls -la ./build/$DEB_NAME-$DEB_VERSION
Razvan Radulescu's avatar
Razvan Radulescu committed
21
    - strip --strip-unneeded --remove-section=.comment --remove-section=.note ./build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
Razvan Radulescu's avatar
Razvan Radulescu committed
22 23 24 25
    - cd ./build
    - tar -vcJf ${DEB_NAME}_${DEB_VERSION}.orig.tar.xz $DEB_NAME-$DEB_VERSION
    - cd ./$DEB_NAME-$DEB_VERSION
    - cp -v -r ../../debian .
Razvan Radulescu's avatar
Razvan Radulescu committed
26
    - fakeroot dpkg-buildpackage -F
Razvan Radulescu's avatar
Razvan Radulescu committed
27
    - ls -la ..
Razvan Radulescu's avatar
Razvan Radulescu committed
28
  artifacts:
Razvan Radulescu's avatar
Razvan Radulescu committed
29
    name: $DEB_NAME-$DEB_VERSION-$CI_JOB_NAME
Razvan Radulescu's avatar
Razvan Radulescu committed
30 31
    paths:
      - ./build
Razvan Radulescu's avatar
Razvan Radulescu committed
32
  tags:
33
    - librem5