-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (37 loc) · 1.04 KB
/
build-linux.yml
File metadata and controls
50 lines (37 loc) · 1.04 KB
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
42
43
44
45
46
47
48
49
50
# Template: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Build On Linux
on:
workflow_dispatch:
push:
branches:
- master
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Conan
run: |
pip install conan==2.6.0
conan profile detect
- name: Configure CMake
working-directory: ${{github.workspace}}
run: |
conan install . --build=missing
cmake --preset cmake-project-release
- name: Build Targets
working-directory: ${{github.workspace}}
run: cmake --build --preset cmake-project-release
- name: Install Targets
working-directory: ${{github.workspace}}
run: |
cmake --build --preset cmake-project-release -t install
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: install
path: build/Release/install
include-hidden-files: true
if-no-files-found: error