-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (32 loc) · 1.02 KB
/
linux.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
name: Linux
on:
push:
branches: [ "master", "setup-ci" ]
pull_request:
branches: [ "master" ]
env:
# CMake build type (Release, Debug, RelWithDebInfo, etc.).
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out
# Checks out the repository.
uses: actions/checkout@v4
- name: Install Qt
# Installs the Qt SDK.
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: 'linux'
target: 'desktop'
- name: Configure CMake
# Configures CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Builds the library.
# Builds with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Builds the Sandbox app.
# Builds the sandbox app with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target sandbox