Skip to content

Commit

Permalink
Adds GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix "xq" Queißner committed Jul 1, 2023
1 parent 5c1db2c commit 705d2e5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
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 }}

0 comments on commit 705d2e5

Please sign in to comment.