mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 10:15:03 +00:00
# 概述 把dadk版本升级到0.2.0 dadk 0.2.0能够提升编译速度,并且支持使用dadk对内核进行profiling。 新版dadk的文档: https://docs.dragonos.org.cn/p/dadk/ # 注意 这是一个breaking change,升级后,将无法使用dadk 0.2.0去编译旧的项目。如有需要,请手动降级到dadk 0.1.11: ```shell cargo install --git https://git.mirrors.dragonos.org.cn/DragonOS-Community/DADK --tag v0.1.11 ``` # 更改列表 * chore: 把管理用户程序编译的dadk配置文件改为新格式的 * feat: 使用新版dadk来创建\挂载\卸载磁盘镜像 * chore: bump dadk min version to 0.2.0 * chore: fix ci * chore: 更新github ci镜像到1.7 * doc: 添加文档 --------- Co-Authored-by: xuzihao <xuzihao@dragonos.org> Signed-off-by: longjin <longjin@DragonOS.org>
99 lines
2.4 KiB
YAML
99 lines
2.4 KiB
YAML
name: Build Check
|
|
|
|
on:
|
|
push:
|
|
branches: ["master", "feat-*", "fix-*"]
|
|
pull_request:
|
|
branches: ["master", "feat-*", "fix-*"]
|
|
|
|
jobs:
|
|
format-check:
|
|
name: Format check ${{ matrix.arch }}
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
container: dragonos/dragonos-dev:v1.7
|
|
|
|
strategy:
|
|
matrix:
|
|
arch: [x86_64, riscv64]
|
|
|
|
steps:
|
|
- run: echo "Running in dragonos/dragonos-dev:v1.7"
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Format check
|
|
env:
|
|
ARCH: ${{ matrix.arch }}
|
|
HOME: /root
|
|
shell: bash -ileo pipefail {0}
|
|
run: |
|
|
printf "\n" >> kernel/src/include/bindings/bindings.rs
|
|
sed -i 's/arch = ".*"/arch = "${{ matrix.arch }}"/' dadk-manifest.toml
|
|
FMT_CHECK=1 make fmt
|
|
|
|
kernel-static-test:
|
|
name: Kernel static test ${{ matrix.arch }}
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
container: dragonos/dragonos-dev:v1.7
|
|
|
|
strategy:
|
|
matrix:
|
|
arch: [x86_64, riscv64]
|
|
|
|
steps:
|
|
- run: echo "Running in dragonos/dragonos-dev:v1.7"
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Run kernel static test
|
|
shell: bash -ileo pipefail {0}
|
|
env:
|
|
ARCH: ${{ matrix.arch }}
|
|
HOME: /root
|
|
run: bash -c "source /root/.cargo/env && cd kernel && make test && make test-rbpf"
|
|
|
|
build-x86_64:
|
|
runs-on: ubuntu-latest
|
|
container: dragonos/dragonos-dev:v1.7
|
|
|
|
steps:
|
|
- run: echo "Running in dragonos/dragonos-dev:v1.7"
|
|
|
|
- uses: actions/checkout@v3
|
|
- name: build the DragonOS
|
|
env:
|
|
ARCH: x86_64
|
|
HOME: /root
|
|
shell: bash -ileo pipefail {0}
|
|
|
|
run: |
|
|
source ~/.bashrc
|
|
source ~/.cargo/env
|
|
export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin
|
|
sed -i 's/arch = ".*"/arch = "${{ env.ARCH }}"/' dadk-manifest.toml
|
|
|
|
make all -j $(nproc)
|
|
|
|
build-riscv64:
|
|
runs-on: ubuntu-latest
|
|
container: dragonos/dragonos-dev:v1.7
|
|
|
|
steps:
|
|
- run: echo "Running in dragonos/dragonos-dev:v1.7"
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: build the DragonOS
|
|
shell: bash -ileo pipefail {0}
|
|
env:
|
|
ARCH: riscv64
|
|
HOME: /root
|
|
|
|
run: |
|
|
source ~/.bashrc && source ~/.cargo/env
|
|
sed -i 's/arch = ".*"/arch = "${{ env.ARCH }}"/' dadk-manifest.toml
|
|
make kernel -j $(nproc)
|