Device tree driver basics done #120
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 and Test | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, synchronize] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CMAKE_BUILD_PARALLEL_LEVEL: "" | |
| CMAKE_BUILD_TYPE: "Release" | |
| jobs: | |
| build-gcc-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: lukka/get-cmake@latest | |
| with: | |
| cmakeVersion: '~3.24.0' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y \ | |
| gcc-riscv64-unknown-elf dosfstools e2fsprogs mtools \ | |
| qemu-system-misc | |
| - name: Generate, build and test | |
| uses: lukka/run-cmake@v10 | |
| with: | |
| configurePreset: 'ci-gcc' | |
| buildPreset: 'ci-gcc' | |
| testPreset: 'ci-gcc' | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| path: build/ | |
| build-clang: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: lukka/get-cmake@latest | |
| with: | |
| cmakeVersion: '~3.24.0' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y \ | |
| clang llvm \ | |
| iwyu \ | |
| gcc-riscv64-unknown-elf dosfstools e2fsprogs mtools \ | |
| qemu-system-misc | |
| - name: Generate, build and test | |
| uses: lukka/run-cmake@v10 | |
| with: | |
| configurePreset: 'ci-clang' | |
| buildPreset: 'ci-clang' | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts-clang | |
| path: build/ |