.gitlab-ci.yml 537 Bytes
Newer Older
Anton Weber's avatar
Anton Weber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: "engel-simulator-builder:latest"

stages:
  - check
  - build

check:
  stage: check
  script:
    - rustc --version
    - cargo --version
    - cargo fmt -- --check
  only:
    - merge_requests

build-dev:
  stage: build
  script:
    - ls -al /usr/local/cargo/bin
    - wasm-pack build --dev
  only:
    - merge_requests

build-release:
  stage: build
  script:
    - wasm-pack build
    - cd www
    - npm install
    - npm run rust-web-modules
    - npm run build
  artifacts:
    paths:
      - www/dist
  only:
    - master