Skip to content

Commit 3446e07

Browse files
committed
migrate to github actions ci
1 parent 44a05df commit 3446e07

3 files changed

Lines changed: 85 additions & 105 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest]
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: lukka/get-cmake@latest
15+
16+
- uses: humbletim/setup-vulkan-sdk@v1.2.0
17+
with:
18+
vulkan-query-version: "1.3.283.0"
19+
vulkan-components: Vulkan-Headers
20+
vulkan-use-cache: true
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11.x'
25+
26+
- name: Install Qt
27+
uses: jurplel/install-qt-action@v3
28+
with:
29+
version: '6.7.0'
30+
dir: lib/qt
31+
setup-python: false
32+
cache: true
33+
modules: qtmultimedia qtwebsockets
34+
35+
- name: Install required packages
36+
if: matrix.os == 'ubuntu-latest'
37+
run: |
38+
apt-get install -y libxtst-dev
39+
40+
41+
- uses: lukka/run-cmake@v10
42+
with:
43+
workflowPreset: 'test'
44+

CMakePresets.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": 8,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 21,
6+
"patch": 0
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "default",
11+
"generator": "Ninja",
12+
"binaryDir": "${sourceParentDir}/build",
13+
"errors": {
14+
"dev": true,
15+
"deprecated": true
16+
}
17+
}
18+
],
19+
"buildPresets": [
20+
{
21+
"name": "default",
22+
"configurePreset": "default"
23+
24+
}
25+
],
26+
"workflowPresets": [
27+
{
28+
"name": "test",
29+
"steps": [
30+
{
31+
"type": "configure",
32+
"name": "default"
33+
},
34+
{
35+
"type": "build",
36+
"name": "default"
37+
}
38+
]
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)