Skip to content

Commit 65d62ac

Browse files
authored
Enhance CMake multi-platform workflow
Updated the CMake multi-platform workflow to include macOS and improve structure.
1 parent 56ff175 commit 65d62ac

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CMake Multi-Platform Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
name: Build (${{ matrix.os }})
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
# ------------------------------
24+
# Install dependencies per platform
25+
# ------------------------------
26+
- name: Install dependencies (Linux)
27+
if: matrix.os == 'ubuntu-latest'
28+
run: |
29+
sudo apt update
30+
sudo apt install -y \
31+
clang \
32+
ninja-build \
33+
pkg-config \
34+
libgtk-3-dev \

0 commit comments

Comments
 (0)