Skip to content

Add GitHub Actions

Add GitHub Actions #15

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
cmake:
# Skip building pull requests from the same repository
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: riscvm
run: |
cd riscvm
cmake -B build -T ClangCL
cmake --build build --config Debug --parallel
./build/Debug/tests.exe
- name: transpiler
run: |
cd transpiler
curl -sLO https://github.com/thesecretclub/riscy-business/releases/download/transpiler-v0.3/llvm-17.0.2-win64.7z
7z x llvm-17.0.2-win64.7z -ollvm
cmake -B build -T ClangCL "-DCMAKE_PREFIX_PATH=./llvm"
cmake --build build --config RelWithDebInfo --parallel