-
Notifications
You must be signed in to change notification settings - Fork 58
44 lines (37 loc) · 976 Bytes
/
Copy pathci.yml
File metadata and controls
44 lines (37 loc) · 976 Bytes
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
name: CI
on:
push:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: recursive
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
xorg-dev \
libgl1-mesa-dev
- name: Configure CMake
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DIMGADDONS_BUILD_PREVIEW=ON \
-DIMGADDONS_RUNTIME_OUTPUT_DIR="${{ github.workspace }}/build/bin"
- name: Build
run: |
cmake --build build --config Release --parallel