forked from rcore-os/zCore
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
|
|
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
steps:
|
|
- name: workspace
|
|
image: rust:alpine
|
|
commands:
|
|
- cargo fmt --all -- --check
|
|
- cargo build --all-features
|
|
- cargo clippy --all-features
|
|
- cargo doc --all-features --no-deps
|
|
- name: test-libos
|
|
image: rust:alpine
|
|
commands:
|
|
- cargo build --package zcore --features linux libos
|
|
- cargo build --package zcore --features zircon libos
|
|
- cargo clippy --package zcore --features linux libos
|
|
- cargo clippy --package zcore --features zircon libos
|
|
|
|
- name: test-bare-metal
|
|
image: rust:alpine
|
|
commands:
|
|
- make -C zCore build ARCH=x86_64
|
|
- make -C zCore clippy ARCH=x86_64
|
|
- make -C zCore build ARCH=riscv64 LINUX=1
|
|
- make -C zCore clippy ARCH=riscv64 LINUX=1
|
|
- make -C zCore build ARCH=aarch64 LINUX=1
|
|
- make -C zCore clippy ARCH=aarch64 LINUX=1
|
|
- name: build-user
|
|
image: rust:alpine
|
|
commands:
|
|
- git lfs pull -I prebuilt/zircon/x64/libc.so,prebuilt/zircon/x64/libfdio.so,prebuilt/zircon/x64/libunwind.so,prebuilt/zircon/x64/libzircon.so,prebuilt/zircon/x64/Scrt1.o
|
|
- make -C zircon-user build MODE=release
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|