Skip to content

feat: allow compiling yoyoengine statically, making MSVC work! #42

feat: allow compiling yoyoengine statically, making MSVC work!

feat: allow compiling yoyoengine statically, making MSVC work! #42

Workflow file for this run

name: Compilation Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-gcc:
name: Build with GCC
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt update && sudo apt-get install -y gcc cmake make
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Fetchcontent
id: cache-fetchcontent
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/engine/build/_deps/*-src
key: ${{ runner.os }}-fetchcontent-${{ hashFiles('**/yoyoengine/engine/CMakeLists.txt') }}
- name: Configure with CMake
run: |
mkdir -p ${{ github.workspace }}/engine/build
cd ${{ github.workspace }}/engine/build
CC=gcc cmake -DBUILD_LUA_RUNTIME=OFF -DZOOGIES_DEVELOPMENT_BUILD=TRUE ..
- name: Build with GCC
run: |
cd ${{ github.workspace }}/engine/build
make -j${nproc}
build-clang:
name: Build with Clang
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt update && sudo apt-get install -y clang cmake make
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Fetchcontent
id: cache-fetchcontent
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/engine/build/_deps/*-src
key: ${{ runner.os }}-fetchcontent-${{ hashFiles('**/yoyoengine/engine/CMakeLists.txt') }}
- name: Configure with CMake
run: |
mkdir -p ${{ github.workspace }}/engine/build
cd ${{ github.workspace }}/engine/build
CC=clang cmake -DBUILD_LUA_RUNTIME=OFF -DZOOGIES_DEVELOPMENT_BUILD=TRUE ..
- name: Build with Clang
run: |
cd ${{ github.workspace }}/engine/build
make -j${nproc}