Update Turbo Vision submodule #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: MinSizeRel | |
jobs: | |
build-linux-gcc: | |
name: Linux (GCC 7) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install Dependencies | |
run: | | |
sudo tee --append /etc/apt/sources.list << EOF | |
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe | |
EOF | |
sudo apt -y update | |
sudo apt -y install libncursesw5-dev g++-7 libgtest-dev | |
- name: Configure CMake | |
shell: bash | |
env: | |
CC: gcc-7 | |
CXX: g++-7 | |
run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTURBO_OPTIMIZE_BUILD=OFF -DTURBO_BUILD_EXAMPLES=ON -DTURBO_BUILD_TESTS=ON | |
- name: Build | |
shell: bash | |
run: cmake --build . -j$(nproc) | |
build-windows-msvc32: | |
name: Windows (MSVC) (Win32) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Configure CMake | |
shell: bash | |
run: cmake . -A Win32 -DTURBO_USE_STATIC_RTL=ON | |
- name: Build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE -- -p:UseMultiToolTask=true -p:CL_MPcount=$(nproc) | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: turbo-x86 | |
path: | | |
${{env.BUILD_TYPE}}/turbo.exe | |
build-windows-msvc64: | |
name: Windows (MSVC) (x64) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Configure CMake | |
shell: bash | |
run: cmake . -A x64 -DTURBO_USE_STATIC_RTL=ON | |
- name: Build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE -- -p:UseMultiToolTask=true -p:CL_MPcount=$(nproc) | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: turbo-x64 | |
path: | | |
${{env.BUILD_TYPE}}/turbo.exe | |
build-windows-mingw: | |
name: Windows (MinGW) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Configure CMake | |
shell: bash | |
run: cmake . -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS="-static" -DTURBO_OPTIMIZE_BUILD=OFF | |
- name: Build | |
shell: bash | |
run: cmake --build . -j$(nproc) | |
build-macos-clang: | |
name: MacOS (Clang) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Configure CMake | |
shell: bash | |
run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
shell: bash | |
run: cmake --build . -j$(sysctl -n hw.logicalcpu) | |