aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 947c8888318371ff75bc61e8c5d19cd2a02e509a (plain)
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
37
38
39
image: debian:stable

stages:
  - build

before_script:
  - export DEBIAN_FRONTEND=noninteractive
  - apt-get update -qq
  - >
      apt-get install -y -qq \
        coreutils wget tar gzip bzip2 patch cmake make binutils gcc g++ autoconf automake flex bison texinfo \
        curl xz-utils build-essential git

build-again:
  script:
    - ./mingw-w64-build --jobs 8 --keep-artifacts --tarball ./x86_64-w64-mingw32-toolchain.tbz2 x86_64
    - sha512sum -b ./x86_64-w64-mingw32-toolchain.tbz2 >./x86_64-w64-mingw32-toolchain.tbz2.sha512
  artifacts:
    expire_in: 1 week
    paths:
      - ./x86_64-w64-mingw32-toolchain.tbz2
      - ./x86_64-w64-mingw32-toolchain.tbz2.sha512
  stage: build
  only:
    - main
  when: manual

build:
  script:
    - ./mingw-w64-build --jobs 8 --keep-artifacts --tarball ./x86_64-w64-mingw32-toolchain.tbz2 x86_64
    - sha512sum -b ./x86_64-w64-mingw32-toolchain.tbz2 >./x86_64-w64-mingw32-toolchain.tbz2.sha512
  artifacts:
    expire_in: 1 week
    paths:
      - ./x86_64-w64-mingw32-toolchain.tbz2
      - ./x86_64-w64-mingw32-toolchain.tbz2.sha512
  stage: build
  only:
    - main