将 nvme 驱动移动至内核模块, 修正部分内核模块接口命名 #521
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: CI Workflow | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - 'readme' | |
| - '.gitignore' | |
| - 'README.md' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - 'readme' | |
| - '.gitignore' | |
| - 'README.md' | |
| jobs: | |
| i386: | |
| runs-on: ubuntu-latest | |
| name: i386 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install packages | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: xorriso nasm mtools | |
| version: 1.0 | |
| - name: Setup xmake | |
| uses: wenxuanjun/github-action-setup-xmake@master | |
| with: | |
| xmake-version: latest | |
| actions-cache-folder: '.xmake-cache' | |
| actions-cache-key: ${{ matrix.os }} | |
| build-cache: true | |
| build-cache-key: ${{ matrix.os }} | |
| package-cache: true | |
| package-cache-key: ${{ matrix.os }} | |
| - name: Build CoolPotOS-i386 | |
| run: | | |
| xmake f -y --arch=i686 | |
| xmake build iso | |
| - name: Upload CoolPotOS-i386 ISO | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CoolPotOS-i386 (ISO) | |
| path: build/CoolPotOS.iso | |
| compression-level: 9 | |
| x86_64: | |
| runs-on: ubuntu-latest | |
| name: x86_64 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install OS image builder | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: oib | |
| - name: Install cbindgen | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: cbindgen | |
| - name: Install packages | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: xorriso clang mtools lld | |
| version: 1.0 | |
| - name: Setup xmake | |
| uses: wenxuanjun/github-action-setup-xmake@master | |
| with: | |
| xmake-version: latest | |
| actions-cache-folder: '.xmake-cache' | |
| build-cache: true | |
| package-cache: true | |
| - name: Build CoolPotOS-x86_64 | |
| run: | | |
| xmake f -y --arch=x86_64 | |
| xmake build e1000 | |
| xmake build extfs | |
| xmake build nvme | |
| xmake build iso | |
| xmake build img | |
| - name: Upload CoolPotOS-x86_64 ISO | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CoolPotOS-x86_64 (ISO) | |
| path: build/CoolPotOS.iso | |
| compression-level: 9 | |
| - name: Upload CoolPotOS-x86_64 IMG | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CoolPotOS-x86_64 (IMG) | |
| path: build/CoolPotOS.img | |
| compression-level: 9 |