-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (33 loc) · 983 Bytes
/
ci.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
name: CXX CMake CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ubuntu-build:
runs-on: ubuntu-22.04
strategy:
matrix:
lto: ["ON", "OFF"]
env:
DEBIAN_FRONTEND: noninteractive
CC: clang-17
CXX: clang++-17
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.1
override: true
- run: cargo install cxxbridge-cmd
- run: sudo apt update
- run: sudo apt install -y cmake git
- run: wget https://apt.llvm.org/llvm.sh
- run: chmod +x ./llvm.sh
- run: sudo ./llvm.sh 17 17
- run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LTO=${{matrix.lto}} ..
- run: cd build && make
- run: cd build && ./main