Skip to content

Re-organize compiler modules into a compiler directory #413

Re-organize compiler modules into a compiler directory

Re-organize compiler modules into a compiler directory #413

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
code-style-check:
name: Code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.17
with:
source: './compiler'
extensions: 'hpp,cpp'
clangFormatVersion: 15
ubuntu-gcc:
name: Ubuntu GCC build & test
runs-on: ubuntu-latest
needs: code-style-check
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
with:
path: ./llvm
key: llvm-13.0.0
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "13.0.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Build
run: |
cmake -S compiler -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_CODEGEN=ON ..
make
- name: Run tests
run: |
cd build
ctest --output-on-failure
windows-msvc:
name: Windows MSVC build & test
runs-on: windows-2022
needs: code-style-check
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: |
cmake -S compiler -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DENABLE_CODEGEN=OFF ..
cmake --build .
- name: Run tests
run: |
cd build
ctest --output-on-failure