-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (71 loc) · 1.94 KB
/
cmake.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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
# Can't seem to get the right secret sauce to build Qt on ubuntu-latest under github actions
# os: [ ubuntu-latest, windows-latest ]
os: [ windows-latest ]
runs-on: ${{matrix.os}}
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
submodules: true
- name: Set Environment Variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
#- name: Install Qt
# if: matrix.os == 'ubuntu-latest'
# uses: jurplel/install-qt-action@v4
#
#- name: Install Prerequisites
# if: matrix.os == 'ubuntu-latest'
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: >
# autoconf
# automake
# autoconf-archive
# build-essential
# libegl1-mesa-dev
# libgl1-mesa-dev
# libglu1-mesa-dev
# libgstreamer-gl1.0-0
# libpulse-dev
# libx11-xcb-dev
# libxcb-cursor0
# libxcb-glx0
# libxcb-icccm4
# libxcb-image0
# libxcb-keysyms1
# libxcb-randr0
# libxcb-render-util0
# libxcb-render0
# libxcb-shape0
# libxcb-shm0
# libxcb-sync1
# libxcb-util1
# libxcb-xfixes0
# libxcb-xinerama0
# libxcb-xkb-dev
# libxcb1
# libxi-dev
# libxkbcommon-dev
# libxkbcommon-x11-0
# libxkbcommon-x11-dev
# libxrender-dev
# libtool
# pkg-config
- name: Run Workflow
run: cmake --workflow --preset default