Reduce task stacks #74
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 CH32V305 Firmware | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'ch32v305/**' | |
| - '.github/workflows/build-ch32v305-firmware.yml' | |
| pull_request: | |
| paths: | |
| - 'ch32v305/**' | |
| - '.github/workflows/build-ch32v305-firmware.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-firmware: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ch32v305 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install RISC-V GCC toolchain | |
| run: npx xpm@latest install --global @xpack-dev-tools/riscv-none-elf-gcc@15.2.0-1.1 | |
| - name: Add toolchain to PATH | |
| run: echo "$HOME/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/15.2.0-1.1/.content/bin" >> "$GITHUB_PATH" | |
| - name: Configure | |
| run: cmake -S . -B build -G Ninja | |
| - name: Build | |
| run: cmake --build build | |
| - name: Upload firmware artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ch32v305-firmware | |
| path: | | |
| ch32v305/build/ch32v305_sdr.elf | |
| ch32v305/build/ch32v305_sdr.map |