Add CI workflow for building RISC-V packages #1
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache APT Packages | |
| uses: awalsh128/cache-apt-pkgs-action@v1.5.3 | |
| with: | |
| packages: libncurses-dev libssl-dev bc flex bison make gcc gcc-riscv64-linux-gnu | |
| version: 1 | |
| - name: make olddefconfig | |
| run: make O=$__kobj ARCH=riscv64 CROSS_COMPILE=riscv64-linux-gnu- olddefconfig | |
| - name: make | |
| run: make O=$__kobj ARCH=riscv64 CROSS_COMPILE=riscv64-linux-gnu- -j$(nproc) | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: debian_packages | |
| path: ../*.deb |