-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (32 loc) · 1.28 KB
/
build-ubuntu-clang.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: build-ubuntu-clang
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# platform tasks
jobs:
UbuntuClang:
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 apt update
sudo apt install clang-14
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 100
- 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 Ninja build files
run: mkdir build && cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- name: Building Enigma
run: cd build && ninja -j$(nproc)
- name: Installing Enigma
run: cd build && ninja install
- name: Running Enigma
run: ./build/Enigma --version