-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (54 loc) · 1.59 KB
/
linux_build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux
on:
push: {}
pull_request: {}
env:
PROJECT_NAME: "QuickCut"
QT_VERSION: 5.15.0
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {
name: "Ubuntu Latest",
os: "ubuntu-latest",
artifact: "Ubuntu",
build_type: "Release",
cmake_generator: '-G "Unix Makefiles"',
cmake_build_args: "-j",
}
steps:
- uses: actions/checkout@v2
- name: Install conan Packge-Manager
id: install_pm
run: |
export PATH="$HOME/.local/bin:$PATH"
pip install wheel
pip install conan
conan -v
conan profile new default --detect --force
- name: Download Qt modules
id: qt
uses: jurplel/install-qt-action@v2
with:
version: "${{ env.QT_VERSION }}"
modules: core gui widgets network
- name: CMake configure
id: cmake_configure
run: |
export PATH="$HOME/.local/bin:$PATH"
mkdir build && cd build
cmake .. ${{ matrix.config.cmake_generator }} -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
- name: CMake build
id: cmake_build
run: |
cd build
cmake --build . --config ${{ matrix.config.build_type }} -- ${{ matrix.config.cmake_build_args }}
- uses: actions/upload-artifact@v2
id: upload_artifact
with:
name: ${{ env.PROJECT_NAME }}-${{ matrix.config.artifact }}
path: ./build/bin/