Fork of Relibc
1image: "redoxos/redoxer:latest"
2
3variables:
4 GIT_SUBMODULE_STRATEGY: recursive
5
6stages:
7 - build
8 - test
9before_script:
10 cargo install cbindgen
11
12default:
13 cache:
14 paths:
15 - target/
16
17build:linux:
18 stage: build
19 script:
20 - rustup show # Ensure correct toolchain is downloaded and installed
21 - make -j "$(nproc)" all
22
23build:redox:
24 stage: build
25 variables:
26 TARGET: x86_64-unknown-redox
27 script:
28 - ./redoxer.sh -j "$(nproc)" all
29
30test:linux:
31 stage: test
32 needs:
33 - build:linux
34 dependencies:
35 - build:linux
36 script:
37 - make test
38
39test:redox:
40 stage: test
41 needs:
42 - build:redox
43 dependencies:
44 - build:redox
45 variables:
46 TARGET: x86_64-unknown-redox
47 script:
48 # TODO: sigaction and sigaltstack sometimes hangs with multi core
49 - REDOXER_QEMU_ARGS="-smp 1" ./redoxer.sh test SKIP_REDOX=1
50
51fmt:
52 stage: test
53 needs: []
54 script:
55 - rustup component add rustfmt-preview
56 - ./fmt.sh -- --check