Skip to content

添加github workflow,检查代码是否已经格式化 #950

添加github workflow,检查代码是否已经格式化

添加github workflow,检查代码是否已经格式化 #950

Workflow file for this run

name: Build Check
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
# ensure the toolchain is cached
ensure-toolchain:
uses: ./.github/workflows/cache-toolchain.yml
build:
runs-on: ubuntu-latest
needs: [ensure-toolchain]
steps:
- uses: actions/checkout@v3
- name: build the DragonOS
run: bash -c "source ~/.cargo/env && export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin && make -j $(nproc) "