-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (33 loc) · 963 Bytes
/
cmake-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
name: CMake Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.25.0'
- name: Install packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libspeechd-dev libx11-dev
- name: Configure CMake
run: cmake . -B build -DCMAKE_OSX_ARCHITECTURES=x86_64
- name: Build with CMake
run: cmake --build build --config Release -j 16
- name: Archive artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-build
path: build