feat: ETL migration, MPMC logging, device framework overhaul, VFS/FatFS, and coding standards #57
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
| # Copyright The SimpleKernel Contributors | |
| name: build | |
| on: | |
| - push | |
| - pull_request | |
| - release | |
| env: | |
| CMAKE_BUILD_TYPE: Release | |
| DOCKER_IMAGE: ptrnull233/simple_kernel:latest | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: read | |
| statuses: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: x86_64 | |
| uses: addnab/docker-run-action@v3 | |
| with: | |
| image: ${{ env.DOCKER_IMAGE }} | |
| options: -v ${{ github.workspace }}:/root -e CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | |
| run: | | |
| cmake --preset=build_x86_64 | |
| cmake --build build_x86_64 --target SimpleKernel unit-test coverage docs | |
| - name: riscv64 | |
| uses: addnab/docker-run-action@v3 | |
| with: | |
| image: ${{ env.DOCKER_IMAGE }} | |
| options: -v ${{ github.workspace }}:/root -e CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | |
| run: | | |
| cmake --preset=build_riscv64 | |
| cmake --build build_riscv64 --target SimpleKernel | |
| - name: aarch64 | |
| uses: addnab/docker-run-action@v3 | |
| with: | |
| image: ${{ env.DOCKER_IMAGE }} | |
| options: -v ${{ github.workspace }}:/root -e CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | |
| run: | | |
| cmake --preset=build_aarch64 | |
| cmake --build build_aarch64 --target SimpleKernel | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ${{ github.workspace }}/build_x86_64/coverage/coverage.info | |
| verbose: true | |
| - name: Publish | |
| if: github.ref == 'refs/heads/main' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ${{ github.workspace }}/docs/html | |
| # - name: Super-Linter | |
| # uses: super-linter/super-linter@v7.2.0 | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |