-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (27 loc) · 1.02 KB
/
Linux-cmake.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
name: Linux Build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Set clang as the default compiler
run: |
sudo update-alternatives --install /usr/bin/cc cc $(which clang) 100
sudo update-alternatives --install /usr/bin/c++ c++ $(which clang++) 100
sudo update-alternatives --set cc $(which clang)
sudo update-alternatives --set c++ $(which clang++)
- name: Add Rust target
run: rustup target add wasm32-unknown-emscripten
- name: Install Ninja
run: sudo apt install ninja-build -y
- name: Install ccache
run: sudo apt install ccache -y
- name: Configure CMake
run: cmake -S build/Linux/ -B build/Linux/Release -DCMAKE_BUILD_TYPE=Release -G Ninja
- name: Build project
run: cmake --build build/Linux/Release --config Release -j