Skip to content

Commit 7f7254c

Browse files
authored
Refactor GitHub Actions workflow for CMake build
1 parent c2efde9 commit 7f7254c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checkout code
16+
- uses: actions/checkout@v2
17+
18+
- name: Install build dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y ninja-build pkg-config cmake g++ qt5-default qtbase5-dev qttools5-dev-tools
22+
23+
# --- First build ---
24+
- name: Configure CMake
25+
run: cmake -B build -G "Ninja"
26+
27+
- name: Build
28+
run: cmake --build build

0 commit comments

Comments
 (0)