fix(fuse) support FUSE submounts and fix virtiofs mount semantics #5539
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Check | |
| on: | |
| push: | |
| branches: ["master", "feat-*", "fix-*"] | |
| pull_request: | |
| branches: ["master", "feat-*", "fix-*"] | |
| jobs: | |
| changes: | |
| name: Detect kernel changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| kernel_changed: ${{ steps.filter.outputs.kernel }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check changed paths | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| kernel: | |
| - 'kernel/**' | |
| format-check: | |
| name: Format check ${{ matrix.arch }} | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: dragonos/dragonos-dev:v1.23 | |
| strategy: | |
| matrix: | |
| arch: [x86_64, riscv64, loongarch64] | |
| steps: | |
| - run: echo "Running in dragonos/dragonos-dev:v1.23" | |
| - uses: actions/checkout@v3 | |
| - name: Change source | |
| run: | | |
| find . -type f \( -name "*.toml" -o -name "Makefile" \) -exec sed -i 's/git\.mirrors\.dragonos\.org\.cn/github\.com/g' {} + | |
| - name: Format check | |
| env: | |
| ARCH: ${{ matrix.arch }} | |
| HOME: /root | |
| shell: bash -ileo pipefail {0} | |
| run: | | |
| printf "\n" >> kernel/src/include/bindings/bindings.rs | |
| printf "\n" >> kernel/src/init/version_info.rs | |
| FMT_CHECK=1 make fmt | |
| kernel-static-test: | |
| name: Kernel static test ${{ matrix.arch }} | |
| needs: changes | |
| if: needs.changes.outputs.kernel_changed == 'true' | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: dragonos/dragonos-dev:v1.23 | |
| strategy: | |
| matrix: | |
| arch: [x86_64, riscv64, loongarch64] | |
| steps: | |
| - run: echo "Running in dragonos/dragonos-dev:v1.23" | |
| - uses: actions/checkout@v3 | |
| - name: Change source | |
| run: | | |
| find . -type f \( -name "*.toml" -o -name "Makefile" \) -exec sed -i 's/git\.mirrors\.dragonos\.org\.cn/github\.com/g' {} + | |
| - 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" | |
| build: | |
| name: Build ${{ matrix.arch }} | |
| runs-on: ubuntu-latest | |
| container: dragonos/dragonos-dev:v1.23 | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| include: | |
| - arch: x86_64 | |
| make_target: all | |
| checkout_params: {} | |
| - arch: riscv64 | |
| make_target: all | |
| checkout_params: | |
| submodules: "recursive" | |
| - arch: loongarch64 | |
| make_target: all | |
| checkout_params: {} | |
| steps: | |
| - run: echo "Running in dragonos/dragonos-dev:v1.23" | |
| - uses: actions/checkout@v3 | |
| with: ${{ matrix.checkout_params }} | |
| - name: Change source | |
| run: | | |
| find . -type f \( -name "*.toml" -o -name "Makefile" \) -exec sed -i 's/git\.mirrors\.dragonos\.org\.cn/github\.com/g' {} + | |
| - name: Build the DragonOS | |
| env: | |
| ARCH: ${{ matrix.arch }} | |
| HOME: /root | |
| RUSTUP_DIST_SERVER: "https://rsproxy.cn" | |
| RUSTUP_UPDATE_ROOT: "https://rsproxy.cn/rustup" | |
| shell: bash -ileo pipefail {0} | |
| run: | | |
| source $HOME/.bashrc | |
| source $HOME/.cargo/env | |
| if [[ "$ARCH" == "x86_64" ]]; then | |
| export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin | |
| fi | |
| make ${{ matrix.make_target }} -j $(nproc) |