ci: build pipeline #1
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, workflow_dispatch] | |
jobs: | |
windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: cmd | |
steps: | |
- name: Checkout exgine | |
uses: actions/checkout@v4 | |
with: | |
path: exgine | |
submodules: 'recursive' | |
- name: Remove Strawberry Perl From Path | |
run: | | |
move /y C:\Strawberry C:\Strawberry_not_in_PATH | |
exit /b 0 | |
- name: Configure | |
run: cmake -Bbuild -Hexgine -T v142 -A x64 -DCMAKE_INSTALL_PREFIX=%CD%\install | |
- name: Install | |
run: cmake --build build --config Release -j2 | |
- name: List | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: exgine_windows-x64 | |
path: | | |
build/exgine/Release/exgine.exe | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout exgine | |
uses: actions/checkout@v4 | |
with: | |
path: exgine | |
submodules: 'recursive' | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y build-essential cmake | |
sudo apt install libwayland-dev libxkbcommon-dev xorg-dev | |
- name: Configure | |
run: cmake -Bbuild -Hexgine -DCMAKE_INSTALL_PREFIX=$PWD/install | |
- name: Build | |
run: cmake --build build --config Release -j2 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: exgine_linux-x64 | |
path: | | |
build/exgine/exgine |