.gitlab-ci.yml 1.13 KB
Newer Older
Florian Blasius's avatar
Florian Blasius committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
image: 'rust:latest'

stages:
    - build

variables:
    CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
  - apt-get update -qq
  - apt-get install -qq build-essential curl git

build:linux:
  stage: build
  before_script:
    - apt-get update && apt-get -y install cmake
  script:
    - cargo build
  cache:
    paths:
      - cargo/
      - target/
Florian Blasius's avatar
Florian Blasius committed
22
23
24
25
26
27
28
29
30
31
32
      
build:web:
  stage: build
  before_script:
    - cargo install --force cargo-web
  script:
    - cargo web build
  cache:
    paths:
      - cargo/
      - target/
Florian Blasius's avatar
Florian Blasius committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

build:redox:
  stage: build
  variables:
    CC: "x86_64-unknown-redox-gcc"
  before_script:
    - apt-get update -qq
    - apt-get install -qq build-essential curl git gnupg software-properties-common apt-transport-https
    - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
    - add-apt-repository 'deb https://static.redox-os.org/toolchain/apt /'
    - apt-get update -qq && apt-get install -qq x86-64-unknown-redox-gcc
    - rustup default nightly
    - rustup target add x86_64-unknown-redox
  script:
    - cargo build --target x86_64-unknown-redox
  cache:
    paths:
      - cargo/
      - target/