Skip to content

Adds GitHub CI

Adds GitHub CI #1

Workflow file for this run

name: CMake
on:
push:
branches: ['main']
pull_request:
branches: ['main','format_tooling']
env:
CMAKE_GENERATOR: Ninja
jobs:
build:
strategy:
matrix:
# Run all four build types

Check failure on line 16 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 16
build_type: ["Debug", "Release", "RelWithDebInfo, ""MinSizeRel"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Fetch & install RISC-V GNU Compiler Toolchain
run: |
curl -Lo riscv32-elf-ubuntu-22.04-nightly.tar.gz 'https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.06.09/riscv32-elf-ubuntu-22.04-nightly-2023.06.09-nightly.tar.gz'
tar -xf riscv32-elf-ubuntu-22.04-nightly.tar.gz
echo "${PWD}/riscv/bin" >> $GITHUB_PATH
- name: Configure CMake
run: cmake -B "${{github.workspace}}/build" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}