Skip to content

Update workflows

Update workflows #7

Workflow file for this run

name: build-ubuntu
# build on pushs and pull requests on master branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# platform tasks
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [x64] #architecture: [x86, x64]
build-platform: [x64] #build-platform: [x86, x64]
steps:
- uses: actions/checkout@v2
- name: Installing Latest gcc & g++ Compiler
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-12 g++-12
- name: Installing necessary system libraries
run: sudo apt install cmake ninja-build libgl1-mesa-dev libxi-dev libx11-dev xorg-dev libwayland-dev libxkbcommon-dev libxcursor-dev libxrandr-dev libxcomposite-dev libxinerama-dev libtbb-dev
- name: Generating CMake Project & Build project
run: mkdir build && cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release && ninja -j$(nproc) -DCMAKE_CXX_COMPILER:FILEPATH=$(which g++-12) -DCMAKE_C_COMPILER:FILEPATH=$(which gcc-12)
- name: Run Enigma
run: ./build/Enigma --version