CMAKE: Add wop_alongwayCTL to validation #1355
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
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
name: "Build" | |
jobs: | |
build-cmake: | |
name: ${{ matrix.platform.name }} | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
matrix: | |
platform: | |
- { name: Ubuntu, os: ubuntu-20.04 } | |
- { name: Windows32, os: windows-2019, param: "-A Win32" } | |
- { name: Windows, os: windows-2019 } | |
- { name: MacOS13, os: macos-13 } | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install Dependencies (Linux)" | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev | |
- name: "Install Dependencies (OSX)" | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2 | |
- name: "Install Dependencies (Windows)" | |
if: ${{ runner.os == 'Windows' }} | |
run: choco install zip | |
- name: "Compile" | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install ${{ matrix.platform.param }} | |
cmake --build . | |
cmake --install . | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.platform.name }} | |
path: build/install/* |